Skip to main content
Pie
ra0

TcxCanvas.StretchDraw(TRect,TGraphic) Method

Draws a specified image on a designated canvas area.

Declaration

procedure StretchDraw(const Rect: TRect; Graphic: TGraphic);

Parameters

Name Type
Rect TRect
Graphic TGraphic

Remarks

Call this procedure and pass a target rectangle on the canvas as the Rect parameter to draw content of a TGraphic container passed as the AImage parameter. The StretchDraw procedure stretches or shrinks the specified image if its size does match the target rectangle.

Note

The StretchDraw procedure calls the StretchDraw procedure for the underlying canvas.

See Also