procedure CopyFromDC(srcDc: HDC; const srcRect: TRect);
Copies an image from a Window's device context, erasing the current image in TImage32.
uses VCL.Graphics, Img32; ... var img: TImage32; bmp: TBitmap; begin ... img := TImage32.Create; img.CopyFromDC(bmp.Canvas.Handle, Rect(0, 0, bmp.Width, bmp.Height)); ... img.Free;
Copyright ©2010-2023 Angus Johnson - Image32 4.8 - Help file built on 17 Jan 2025