Vcl.ImgList.TCustomImageList.Draw

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Draw(Canvas: TCanvas; X, Y, Index: Integer;
Enabled: Boolean = True); overload;
procedure Draw(Canvas: TCanvas; X, Y, Index: Integer;
ADrawingStyle: TDrawingStyle; AImageType: TImageType;
Enabled: Boolean = True); overload;

C++

void __fastcall Draw(Vcl::Graphics::TCanvas* Canvas, int X, int Y, int Index, bool Enabled = true)/* overload */;
void __fastcall Draw(Vcl::Graphics::TCanvas* Canvas, int X, int Y, int Index, TDrawingStyle ADrawingStyle, TImageType AImageType, bool Enabled = true)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ImgList.pas
Vcl.ImgList.hpp
Vcl.ImgList TCustomImageList

Description

Draws the image specified by the Index parameter onto the provided Canvas.

Use the Draw method to draw one of the images in the image list onto a specified canvas.

Canvas is the drawing surface on which to render the image.

X and Y specify the location where the top-left corner should appear on Canvas.

Index indicates which image to draw, where 0 specifies the first image, 1 specifies the second image, and so on.

ADrawingStyle indicates how the color of the image may be altered. If this parameter is not specified, Draw uses the value of the DrawingStyle property.

AImageType indicates whether to draw the image or its associated mask. If this parameter is not specified, Draw uses the value of the ImageType property.

Enabled indicates whether the image appears as a gray-mapped image. If Enabled is false, Draw renders a gray-mapped version of the image. Because Enabled has a default value of true, this parameter can be omitted if the image should not be grayed.

See Also

Code Examples