TcxCustomImageList.Replace(Integer,TGraphic,TBitmap) Method
Replaces a specific image within the list with a specified image.
Declaration
procedure Replace(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