如何捕获Windows上的桌面,以便捕获directX和正常渲染的屏幕的部分? [英] How to capture desktop on windows so that it would capture both directX and normally rendered parts of screen?
问题描述
简单的例子 - 一方面我们看到通过标准软件呈现的相机渲染的输入另一方面(标记为输出)通过一些directX东西(至少它似乎在我)渲染:
Simple example - on one side we see camera rendered via standard software rendered "Input" on other hand (labeled "Output") rendered via some directX stuff (at least it seems to me) :
那么,Windows api或DirectX api提供什么功能来捕获这些混合场景?
So what function is provided by windows api or DirectX api for capturing such mixed scenes?
推荐答案
TightVNC服务器可以,你可能想看看他们在做什么。从简单的扫视他们的源代码,它看起来像他们正在创建一个虚拟屏幕镜像主屏幕。
具体来说,请查看
CreateCompatibleDC
和 CreateDIBSection
API的
TightVNC Server can do it, you may want to look into what they are doing. From a simple glance through their source code it looks like they are creating a virtual screen that mirrors the primary screen.
Specifically though, look into the
CreateCompatibleDC
and CreateDIBSection
API's
这篇关于如何捕获Windows上的桌面,以便捕获directX和正常渲染的屏幕的部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!