What is the fastest way of taking a screenshot in

2019-08-15 06:30发布

问题:

What is the fastest way to capture a screenshot in Windows? A driver? Using DirectX?

回答1:

The fastest way would be to read mapped region of video card memory I think... Just an idea, never tried that.



回答2:

A while back I timed the win32 api and the .net wrapper. Here is the complete blog post:

http://blog.bobcravens.com/2009/04/fastest-screen-capture-using-c-vista-vs-win7/

The upshot is that the .net wrapper in the latest version of Win7 is as fast as the native win32 api. I have never tried DirectX or the other options. The .net wrapper was fast enough for my purpose. I have heard that accessing the video drivers (like VNC does) is the fastest. I have nothing to back that up, but it seems reasonable.

Bob