Reputation: 31
I'm wondering how to render Screen as a middle level.
that is, I can produce the screen HDC after every repaint of screen, and before the screen is actually display on monitor.
for example, the magnifier utility of Window 7. you can see the content under the magnifier window, how does it made?
Upvotes: 1
Views: 312
Reputation: 51345
As I understand the question, the specific issue is in capturing the screen while treating the capturing application as if it were transparent.
A solution for this was introduced in Windows 10 Version 2004 via the WDA_EXCLUDEFROMCAPTURE
constant to the SetWindowDisplayAffinity()
API. The effect of setting this on a window is that screen captures (using BitBlt()
or Windows.Graphics.Capture
) will contain whatever is underneath this window.
No hooking into the desktop compositor is required to make this work.
Upvotes: 0
Reputation: 841
There are three steps
Upvotes: 0