如何捕获Windows上的桌面,以便捕获directX和正常渲染的屏幕的部分? [英] How to capture desktop on windows so that it would capture both directX and normally rendered parts of screen?

查看:262
本文介绍了如何捕获Windows上的桌面,以便捕获directX和正常渲染的屏幕的部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单的例子 - 一方面我们看到通过标准软件呈现的相机渲染的输入另一方面(标记为输出)通过一些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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆