Skip to main content
Pie
ra0

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCanvas.StretchDraw(TRect,TGraphic) Method

Draws a specified image on a designated canvas area.

#Declaration

Delphi
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