What 开发者_JAVA百科is the fastest way to capture a screenshot in Windows? A driver? Using DirectX?
The fastest way would be to read mapped region of video card memory I think... Just an idea, never tried that.
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
精彩评论