Vcl.ImgList.TCustomImageList.GetIcon
Delphi
procedure GetIcon(Index: Integer; Image: TIcon); overload;
procedure GetIcon(Index: Integer; Image: TIcon; ADrawingStyle: TDrawingStyle;
AImageType: TImageType); overload;
C++
void __fastcall GetIcon(int Index, Vcl::Graphics::TIcon* Image)/* overload */;
void __fastcall GetIcon(int Index, Vcl::Graphics::TIcon* Image, TDrawingStyle ADrawingStyle, TImageType AImageType)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ImgList.pas Vcl.ImgList.hpp |
Vcl.ImgList | TCustomImageList |
Description
Returns the image specified by Index as an icon into the Image parameter.
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.