RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.GetIcon Method (Integer, TIcon)

Returns the image specified by Index as an icon into the Image parameter.

Pascal
procedure GetIcon(Index: Integer; Image: TIcon); overload;
procedure GetIcon(Index: Integer; Image: TIcon; ADrawingStyle: TDrawingStyle; AImageType: TImageType); overload;
C++
__fastcall GetIcon(int Index, TIcon Image);
__fastcall GetIcon(int Index, TIcon Image, TDrawingStyle ADrawingStyle, TImageType AImageType);

Call GetIcon to obtain a particular image in the image list as an icon. 

Index identifies the desired image, where 0 specifies the first image, 1 specifies the second image, and so on. 

Image is a TIcon object that receives the new image. 

ADrawingStyle specifies the amount of color that is blended with the image to achieve various affects. When GetIcon is called using the version that does not take an ADrawingStyle parameter, it uses the value of the DrawingStyle property. 

AImageType specifies whether the image is rendered using a mask. When GetIcon is called using the version that does not take an AImageType parameter, it uses the value of the ImageType property. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!