Skip to main content

TcxCustomImageList.Insert(Integer,TGraphic,TBitmap) Method

Inserts an image and its transparency mask bitmap at the specified position within the image list.

Declaration

procedure Insert(AIndex: Integer; AImage: TGraphic; AMask: TBitmap);

Parameters

Name Type Description
AIndex Integer

The position within the image list.

AImage TGraphic

The source image container.

AMask TBitmap

The transparency mask bitmap.

Remarks

This function divides the loaded image into multiple images or truncates it to match the list’s dimensions as the Add function does.

This function allows you to pass a transparency mask bitmap for the appended image as the AMask parameter. To omit the mask, pass nil (in Delphi) or nullptr (in C++Builder).

Note

The transparency mask bitmap is ignored if the Masked property is set to False.

See Also