如何从另一个桌面捕获屏幕?(CreateDesktop) [英] how to capture screen from another desktop?(CreateDesktop)
问题描述
如果一个桌面不是当前桌面,那么windows就不会绘制它.那么DC截屏是不行的.
if one desktop isn't the current desktop,so,windows will not draw it .then capture the screen by DC was not work.
帮帮我!!!
推荐答案
您能做的最好的事情就是使用本文中描述的技术:
The best you can do is to use the technique described in this article:
http://www.fengyuan.com/article/wmprint.html
基本上,您必须欺骗其他桌面上的应用程序才能将它们的窗口重新绘制到您选择的 DC 中.我做过一次 - 它可以工作,但绝不是微不足道的.
Basically, you have to fool the applications on the other desktop to redraw their windows into a DC of your choice. I did this once - it can be made to work, but it's by no means trivial.
有很多缺点 - 例如不要期望能够展示出漂亮的 Aero 风格的复合桌面.
There are many drawbacks - e.g. don't expect to be able to show a nice Aero style composited desktop.
这篇关于如何从另一个桌面捕获屏幕?(CreateDesktop)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!