以编程方式捕获屏幕。 [英] Capture screen pro-grammatically.

查看:93
本文介绍了以编程方式捕获屏幕。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


亲爱的先生,


我正在进行桌面共享。我需要捕获屏幕并发送给观众。我知道可以使用GDI或DirectX完成。但是在这个项目中,我需要不断向观众发送屏幕更改,因此我需要选择有效的方式,
将以更低的CPU利用率提高性能。请建议我提出以下问题,


只有当桌面上有实时变化(如鼠标移动或有按键时)才能捕获屏幕更新或者窗口最大化或最小化等)而不使用轮询方法,因为它将有助于节省CPU
时间并提高性能。


如何更改帧率 动态 取决于屏幕更新,因为如果我们播放视频帧率更高,否则它会更少。


GDI和DirectX之间也是有效的方式捕获屏幕以提高性能。 


如果您知道任何示例项目或文档,请提供这些链接。


等待你的回复......提前致谢...


解决方案

复制  http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/thread/d6a311a4-d938-4c92-b326-163f8ddcfb2d

Dear sir,

I am working on desktop sharing. I need to capture screen and send to viewer. I know it can be done using GDI or DirectX. But in this project I need to continuously send screen changes to the viewer, so I need to choose efficient way which will improve performance with less CPU utilization. Please suggest me for the following questions,

Is it possible to capture screen updates only when there is change on the desktop in real time (like mouse movement or when there is keystrokes or a window maximizes or minimizes, etc) without using polling method, because it will help to save CPU time and improves performance.

Also how to vary the frame rate dynamically depending on the screen updates, because if we play video frame rate is more otherwise it will be less.

Also between GDI and DirectX which is efficient way to capture screen to improve performance. 

Please if you know any sample projects or documents, give those links.

Awaiting for your reply...Thanks in advance...

解决方案

Duplicate of http://social.msdn.microsoft.com/Forums/en-US/windowsuidevelopment/thread/d6a311a4-d938-4c92-b326-163f8ddcfb2d


这篇关于以编程方式捕获屏幕。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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