Hi
I really have looked hi and low but no answer found so here I am.
I want to do a screen capture that does not include my Lazarus (linux) app.. But the app keeps on getting included in image...
procedure TForm1.Button1Click(Sender: TObject);
var
ScreenDC: HDC;
MyRec : TRect;
LocalBitmap : Tbitmap;
begin
form1.Visible:=false;
LocalBitmap := TBitmap.Create;
ScreenDC := GetDC(1);
LocalBitmap.LoadFromDevice(ScreenDC);
LocalBitmap.SaveToFile('/home/mpskinner/Desktop/zz.bmp');
LocalBitmap.free;
form1.Visible:=true;
ReleaseDC( 0, ScreenDC );
end;
I'm lost. Any pointers appreciated..
Thank You..