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.
SCREEN CAPTURE ON WINDOWS PCs To capture the whole desktop (that is, everything visible on your screen) simply press the [PrtScn] (Print Screen) key (usually located towards the top right-hand corner of the keyboard, often the leftmost in a group of three keys).
Simply double-click the middle of the video's window. Press the ⊞ Win key and the PrtScn key at the same time. The ⊞ Win key is in the bottom-left side of the keyboard, while the PrtScn ("Print Screen") key is in the upper-right side of the keyboard.
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.
You use PrintWindow() for that, but it is not fast and does not work for all applications.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With