TTeeCanvas.StretchDraw
TTeeCanvas
procedure StretchDraw(Const Rect: TRect; Const Graphic: TGraphic); virtual; abstract; overload;
Unit
TeCanvas
Description
Call StretchDraw to draw a graphic on the canvas so that the image fits in the specified rectangle. StretchDraw calls the Draw method of the graphic. The graphic object determines how to fit into the rectangle. This may involve changing magnification and/or aspect ratio.
To render the graphic in its natural size, use the Draw method, instead.
Graphics can be bitmaps, icons, or metafiles. If the graphic is a TBitmap object, the bitmap is rendered using the value of CopyMode.