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.DrawOverlay(TCanvas,Integer,Integer,Integer,TOverlay,TDrawingStyle,TImageType,Boolean) Method

Draws a specific image in the list and an overlay mask on the specified canvas.

#Declaration

Delphi
procedure DrawOverlay(Canvas: TCanvas; X: Integer; Y: Integer; ImageIndex: Integer; Overlay: TOverlay; ADrawingStyle: TDrawingStyle; AImageType: TImageType; Enabled: Boolean = True); overload;

#Parameters

Name Type Description
Canvas TCanvas

The target canvas.

X Integer

The horizontal offset from the canvas’ top-left corner, in pixels.

Y Integer

The vertical offset from the canvas’ top-left corner, in pixels.

ImageIndex Integer

The index of the drawn image.

Overlay TOverlay

The index of an overlay mask.

ADrawingStyle TDrawingStyle

Stores a drawing style.

AImageType TImageType

An image type.

Enabled Boolean

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

#Remarks

Call the Overlay function to associate an overlay with the target image, then pass the image index and the overlay as the ImageIndex and Overlay parameters, respectively.

Note

Refer to the TDrawingStyle and TImageType type descriptions for detailed information on available options.

See Also