RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.DoDraw Method

Draws the specified image onto the provided Canvas in the indicated style.

Pascal
procedure DoDraw(Index: Integer; Canvas: TCanvas; X: Integer; Y: Integer; Style: Cardinal; Enabled: Boolean = True); virtual;
C++
virtual __fastcall DoDraw(int Index, TCanvas Canvas, int X, int Y, unsigned Style, Boolean Enabled = True);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!