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.DrawImage(TCustomImageList,Integer,Integer,Integer,Boolean) Method

Draws an image from a specified image list.

#Declaration

Delphi
procedure DrawImage(Images: TCustomImageList; X: Integer; Y: Integer; Index: Integer; Enabled: Boolean = True);

#Parameters

Name Type
Images TCustomImageList
X Integer
Y Integer
Index Integer
Enabled Boolean

#Remarks

Call this procedure and pass a source image list as the Images parameter to draw an image whose index within the list is passed as the Index parameter. Use the X and Y parameters to define the image’s origin on the canvas. You can pass False as the optional Enabled parameter to draw a grayscaled version of the target image.

Enabled Value Example (an icon to the right of the Group By box caption)
True
False

Note

The DrawImage procedure calls the target image list’s Draw procedure internally to display an image on the canvas.

See Also