Back to Devexpress

TcxCustomImageList.DrawOverlay(TCanvas,Integer,Integer,Integer,TOverlay,TDrawingStyle,TImageType,Boolean) Method

vcl-cximagelist-dot-tcxcustomimagelist-dot-drawoverlay-x28-tcanvas-integer-integer-integer-toverlay-tdrawingstyle-timagetype-boolean-x29.md

latest2.6 KB
Original Source

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

NameTypeDescription
CanvasTCanvas

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

TcxCustomImageList.Draw

TcxCustomImageList Class

TcxCustomImageList Members

cxImageList Unit