如何在自己的窗口下捕获屏幕,不包括我自己的窗口 [英] How can I capture screen under my own window excluding my own window
问题描述
我知道如何用自己的窗口使用BitBlt和桌面DC捕获屏幕。
并使其更清晰:我想显示放大的内容在我的窗口中。
编辑:似乎没有其他的解决方案,而不是在我捕捉屏幕之前隐藏我的窗口(或客户区)内容在我的窗口下显然这会导致我的窗口闪烁,这使得这个场景变得无用。
在捕获过程中设置窗体 AlphaBlend
属性为true,将 AlphaBlendValue
更改为0.请注意,这将使您的表单完全不可见。
Assuming I would like to program a magnifier, how could I capture the content of the screen excluding my very own window ? I know how to capture the screen with my own window using BitBlt and the Desktop DC.
And to make it clearer: I want to show the magnified content in my window.
Edit: It seems that there is no other solution than to hide my window (or the client area) one way or another before I can capture the screen content under my window. Apparently this causes my window to flicker which renders this scenario pretty useless.
During the capture process set the forms AlphaBlend
property to true and the AlphaBlendValue
to 0. Be aware that this will make your form completely invisible.
这篇关于如何在自己的窗口下捕获屏幕,不包括我自己的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!