简体   繁体   English

使用 DXGI 捕获窗口

[英]Window Capture with DXGI

I have a working version of desktop capture using DXGI.我有一个使用 DXGI 的桌面捕获的工作版本。 Is there a way to capture a separate window(HWND) using the same manager?有没有办法使用相同的管理器捕获单独的窗口(HWND)?

DXGI Desktop Duplication API offers you capture of parts of desktop. DXGI 桌面复制 API 为您提供桌面部分的捕获。 There is no option to capture specific window, but you have all the coordinates and so you can extract the window specific areas yourself (if and when they are not occluded, of course; if they are they do not have to be included into desktop composition in first place).没有捕获特定窗口的选项,但是您拥有所有坐标,因此您可以自己提取窗口特定区域(当然,如果它们没有被遮挡;如果它们被遮挡,则不必将它们包含在桌面组合中)放在第一位)。

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

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