Back to Devexpress

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

vcl-cximagelist-dot-tcxcustomimagelist-dot-draw-x28-vcl-dot-graphics-dot-tcanvas-system-dot-types-dot-trect-system-dot-integer-system-dot-boolean-system-dot-boolean-system-dot-boolean-x29.md

latest1.9 KB
Original Source

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

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

NameTypeDescription
ACanvasTCanvas

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

TcxCustomImageList.DrawOverlay

TcxCustomImageList Class

TcxCustomImageList Members

cxImageList Unit