简体   繁体   English

在Windows上快速捕获桌面屏幕

[英]Rapid desktop screen capture on Windows

I want to capture the desktop screen image on Windows. 我想在Windows上捕获桌面屏幕图像。

I know about the CreateCompatibleDC and CreateCompatibleBitmap... functions in C++ but it they are very slow. 我知道C ++中的CreateCompatibleDC和CreateCompatibleBitmap ...函数,但是它们非常慢。 I need a more rapid method that does a screen capture suitable for real-time updates. 我需要一种更快速的方法来进行适合实时更新的屏幕捕获。 In Linux I could use Xlib functions, for example. 例如,在Linux中,我可以使用Xlib函数。 Are there any similar high-speed or system-level screencap functions for Windows? Windows是否有任何类似的高速或系统级屏幕截图功能?

For Windows 8 (and later) there is native API: Desktop Duplication API 对于Windows 8(及更高版本),存在本机API: 桌面复制API

For Windows 7 (and earlier) you may consider using a mirror driver. 对于Windows 7(或更早版本),您可以考虑使用镜像驱动程序。 For example, the DFMirage driver 例如, DFMirage驱动程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM