Skip to main content
Pie
ra0

TcxCanvas.DrawImage(TCustomImageList,Integer,Integer,Integer,Boolean) Method

Draws an image from a specified image list.

Declaration

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