Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I capture screen under my own window excluding my own window

Tags:

windows

delphi

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.

like image 784
iamjoosy Avatar asked Jun 27 '11 15:06

iamjoosy


People also ask

Will capture a picture of the whole program window?

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).

How do you screenshot a video on PC?

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.


2 Answers

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.

like image 123
Uwe Raabe Avatar answered Nov 15 '22 10:11

Uwe Raabe


You use PrintWindow() for that, but it is not fast and does not work for all applications.

like image 34
Mike Versteeg Avatar answered Nov 15 '22 11:11

Mike Versteeg