Skip to main content

TcxCustomImageList.GetImageInfo(HIMAGELIST,Integer,TBitmap,TBitmap) Method

Obtains the bitmap and transparency mask bitmap of the specified stored image.

Declaration

class procedure GetImageInfo(AHandle: HIMAGELIST; AIndex: Integer; AImage: TBitmap; AMask: TBitmap); overload;

Parameters

Name Type Description
AHandle HIMAGELIST

A handle to the source image list.

AIndex Integer

An index of the required image.

AImage TBitmap

Encapsulates a Windows bitmap (HBITMAP) and its palette (HPALETTE).

AMask TBitmap

Encapsulates a Windows bitmap (HBITMAP) and its palette (HPALETTE).

Remarks

This procedure copies the bitmaps to the image containers passed as the AImage and AMask parameters. If the image has no transparency mask bitmap, the procedure fills the AMask container with the clBlack color.

Note

If you pass nil (in Delphi) or nullptr (in C++Builder) as the AImage and/or AMask parameter, the GetImageInfo procedure does not obtain the corresponding bitmap.

See Also