TcxCustomImageList.Draw(TCanvas,TRect,Integer,Boolean,Boolean,Boolean) Method
Draws a specific image in the list on the specified canvas.
Declaration
procedure Draw(ACanvas: TCanvas; const ARect: TRect; AIndex: Integer; AStretch: Boolean = True; ASmoothResize: Boolean = False; AEnabled: Boolean = True); overload;
Parameters
Name | Type | Description |
---|---|---|
ACanvas | TCanvas | 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