Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
27. Nov 2013
Yes, I know how to make normal screenshot:
begin
hDesktop := GetDesktopWindow;
hScreenDC := GetWindowDC(hDesktop);
hMemDC := CreateCompatibleDC(hScreenDC);
hbm := CreateCompatibleBitmap(hScreenDC, AWidth, AHeight);
try
SelectObject(hMemDC, hbm);
BitBlt(hMemDC, 0, 0, AWidth, AHeight, hScreenDC, ALeft, ATop, R);
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
27. Nov 2013
I have window with 32-bit PNG as background, so window is (semi)transparent in some areas. How to make screenshot of this window without desktop underneath it (like taskbar thumbnails in 7, you know)?