Skip to main content

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

TcxImageCollectionItem.Draw(TCanvas,TRect,Boolean,Boolean,Boolean) Method

Paints the image on ACanvas.

#Declaration

Delphi
procedure Draw(ACanvas: TCanvas; const R: TRect; AStretch: Boolean = True; ASmoothResize: Boolean = False; AEnabled: Boolean = True); overload;

#Parameters

Name Type
ACanvas TCanvas
R TRect
AStretch Boolean
ASmoothResize Boolean
AEnabled Boolean

#Remarks

The second overload paints the image within the R rectangle, using image adjustment options.

ACanvas specifies the canvas on which the image will be painted.

X and Y specify the coordinates of the image’s top-left corner.

R specifies the rectangle within which the image will be painted.

AStretch specifies whether the image will fit R. Set AStretch to True, to zoom the image within R boundaries. Otherwise, it will be centered in the rectangle.

ASmoothResize specifies whether antialiasing will be applied when the image is zoomed in. Set ASmoothResize to True, to smooth the resulting image, when it’s scaled to the size of R.

AEnabled specifies whether the image is painted in full color or grayed out. Set AEnabled to False, to paint the image grayed out.

See Also