Skip to main content

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

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

Declaration

procedure GetImageInfo(AIndex: Integer; AImage: TBitmap; AMask: TBitmap; APalette: IdxColorPalette = nil); overload;

Parameters

Name Type Description
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).

APalette IdxColorPalette

Exposes the functions that return stroke and fill colors by their names in the corresponding palettes.

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