Vcl.ImgList.TCustomImageList.DoDraw
Delphi
procedure DoDraw(Index: Integer; Canvas: TCanvas; X, Y: Integer;
Style: Cardinal; Enabled: Boolean = True); virtual;
C++
virtual void __fastcall DoDraw(int Index, Vcl::Graphics::TCanvas* Canvas, int X, int Y, unsigned Style, bool Enabled = true);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.ImgList.pas Vcl.ImgList.hpp |
Vcl.ImgList | TCustomImageList |
Description
Draws the specified image onto the provided Canvas in the indicated style.
Applications can't call the protected DoDraw method. It provides the underlying implementation of the public Draw method.
Index specifies an image to draw.
Canvas indicates the drawing surface on which the image is rendered.
X and Y specify the top-left corner of the image on Canvas.
Style encodes how the image blends color or uses a mask (the DrawingStyle and ImageType).
Enabled indicates whether the image appears as a gray-mapped image. If Enabled is false, DoDraw renders a gray-mapped version of the image.