如何获取所有桌面内容,而不是使用GDI GetDC(NULL)& BitBtl? [英] How to grab all desktop content , not using GDI GetDC(NULL) & BitBtl?

查看:116
本文介绍了如何获取所有桌面内容,而不是使用GDI GetDC(NULL)& BitBtl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道,如何获取所有桌面(屏幕)内容 - 屏幕截图 - 无需访问GDI功能(如GetDC(NULL)和BitBtl),因为知道缺乏性能,而不是硬件加速。

Does anybody know, how to get all desktop (Screen) content - screen shot - without accessing GDI functions (like GetDC(NULL) & BitBtl), because know thay are having lack of perfomance, and not hardware accelerated.

我写了一个比较测试应用程序 - 在WinXP中,通过GetDC抓取屏幕(NULL)&用于屏幕外HDC的BitBlt,每秒约有400次抢占,CPU占用率超过1-2%。然后尝试在Vista上运行它。你觉得怎么样?我收到了什么?大约7-9个抢夺和80%的CPU负载。这不是我想要抓住屏幕的方式。

I wrote test application for comparsion - in WinXP, that grab screen via GetDC(NULL) & BitBlt for offscreen HDC, and have about ~400 per second grabbings with 1-2% CPU overload. And then try to run it on Vista. And how do you think? Whay did I get? About 7-9 grabbings and 80% CPU load. It's not the way I want to grab the screen anymore.

我试着知道如何使用DirectX。但似乎没有办法获得WDM的主要表面(Windows桌面管理器),它可以做很多Aero的视觉效果。

I have tryed to know how do it with DirectX. But it seems there no way to get WDM's primary surface (Windows Desktop Manager), which do a lot of visual of Aero.

我可以获得缩略图,但我无法安排和复制它们与DWM的方式相同。

I can get thumbnails, but I can't arrange&copy them in the way DWM does.

那么有没有功能可以在不缺乏性能的情况下进行屏幕抓取?

So is there any functionallity to do screen grab without lack of perfomance?

推荐答案

有人可以对此发表评论吗?这对我们和我们的项目来说是个大问题。有解决方案吗?

Can someone comment this? It's the big problem for us and our project. Is there a solution?


这篇关于如何获取所有桌面内容,而不是使用GDI GetDC(NULL)& BitBtl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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