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

TcxCustomImageList.Draw(TCanvas,TRect,Integer,Boolean,Boolean,Boolean) Method

In This Article

Draws a specific image in the list on the specified canvas.

#Declaration

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

#Parameters

Name Type Description
ACanvas TCanvas

The target canvas.

ARect TRect

The target rectangle.

AIndex Integer

The index of the target image.

AStretch Boolean

If True, the procedure upscales or downscales the image to fit the rectangle dimensions. If False, the procedure truncates the image when it exceeds the target rectangle.

ASmoothResize Boolean

If True, the procedure smooths the scaled image; otherwise, the procedure does not perform any additional operations on the image.

AEnabled Boolean

If True, the procedure draws image colors as is. If False, the procedure displays the image in grayscale colors.

See Also