TPNGImage help

TPNGImage

Components > TPNGObject > Methods > Draw


Draws the current image into a windows device context (hdc).

procedure
Draw(Canvas: TCanvas; const Rect: TRect);
procedure Draw(Canvas: HDC; const Rect: TRect);
the above only with objectpascal trigger set off

Description

This methods draws the current Portable Network Graphics image into a windows device context. Rect is the area where the image should be painted and Canvas is the canvas object.
Note
When the rect area is larger than the current image the image will be stretched only when it's not partial transparent.