Click here to Skip to main content
14,576,820 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi!

We need very fast capture screen code or dll(may pay).
We do screen capture through Gdi32 or Graphics.CopyFromScreen, but maximum speed of screen capture very low.
Posted
Updated 29-Jun-20 15:36pm
Comments
joshrduncan2012 12-Jun-13 13:34pm
   
Ok, so what is your question?
Fess59 13-Jun-13 4:55am
   
We are in search of technology that makes the fastest screenshot. We tried Win32 and Graphics. On average computer screen capture rate of approximately 40 ms (25 fps). Is there a technology which allows to make it faster?
JackDingler 13-Jun-13 16:59pm
   
That's good performance for GDI.
Sergey Alexandrovich Kryukov 12-Jun-13 21:19pm
   
Every piece of code which is "slow" could be done even slower. So, how can we know your way of doing so? Let me tell you: screen measured in pixels, even big screens, are miserably small, capturing a bitmap from one happens pretty fast (who knows what speed do you expect, but the delay is almost not perceivable by a human). So, it means that you screw up something pretty well... Who knows what, without seeing your code?
I hope you did not do anything like GetPixel or SetPixel... :-)
—SA
Fess59 13-Jun-13 6:39am
   
Hi Sergey!
Now we are talking only about the screenshot, without working with him
Sergey Alexandrovich Kryukov 13-Jun-13 11:49am
   
Excuse me, who are "we"? I'm not talking about any separate part of it. We are talking about nothing now, just because you don't provide any information useful to help you, so far. You can also see available solutions of this problem at try to use it.
—SA
Rate this:
Please Sign up or sign in to vote.

Solution 1

Well, "very fast" and GDI+ should never be used in the same sentence. The two are multually exclusive.

What are you doing that you think you need to grab the screen so fast. I take it you're doing some remote desktop application or making a video out of these screen grabs??
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Perhaps my solution will help you. It is multi-threaded and the number of threads dedicated to polling the screen are configurable. I will even sell you rights to use it since it is licensed for non-commercial use.

Remote Control PCs[^]
   
Comments
Fess59 13-Jun-13 6:32am
   
Hi Andy!
How can I contact you to discuss that issue?
joshrduncan2012 13-Jun-13 14:10pm
   
I highly suggest removing your email from here unless you want a TON of spam.
Rate this:
Please Sign up or sign in to vote.

Solution 3

DXGI Desktop Capture

Project that captures the desktop image with DXGI duplication. Saves the captured image to the file in different image formats (*.bmp; *.jpg; *.tif).

This sample is written in C++. You also need some experience with DirectX (D3D11, D2D1).

What the Application Can Do

* If you have more than one desktop monitor, you can choose.
* Resize the captured desktop image.
* Choose different scaling modes.
* You can show or hide the mouse icon in the output image.
* You can rotate the image for the output picture, or leave it as default.

I hope this is what you are looking for.
   
Comments
Dave Kreskowiak 30-Jun-20 0:25am
   
I doubt he's still looking 7 years later.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100