What is the fastest way of taking a screenshot in Windows?

我的梦境 提交于 2019-12-11 09:23:15

问题


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



来源:https://stackoverflow.com/questions/4975333/what-is-the-fastest-way-of-taking-a-screenshot-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!