Back to Devexpress

TcxCustomImageList.Replace(Integer,TGraphic,TBitmap) Method

vcl-cximagelist-dot-tcxcustomimagelist-dot-replace-x28-system-dot-integer-vcl-dot-graphics-dot-tgraphic-vcl-dot-graphics-dot-tbitmap-x29.md

latest3.8 KB
Original Source

TcxCustomImageList.Replace(Integer,TGraphic,TBitmap) Method

Replaces a specific image within the list with a specified image.

Declaration

delphi
procedure Replace(AIndex: Integer; AImage: TGraphic; AMask: TBitmap);

Parameters

NameTypeDescription
AIndexInteger

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

TcxCustomImageList.AddBitmap

TcxCustomImageList.AddIcon

TcxCustomImageList.AddImage

TcxCustomImageList.AddImages

TcxCustomImageList.AddMasked

TcxCustomImageList.Clear

TcxCustomImageList.CopyImages

TcxCustomImageList.Delete

TcxCustomImageList.FileLoad

TcxCustomImageList.GetInstRes

TcxCustomImageList.Insert

TcxCustomImageList.InsertIcon

TcxCustomImageList.InsertMasked

TcxCustomImageList.LoadImage

TcxCustomImageList.ReplaceIcon

TcxCustomImageList.ReplaceMasked

TcxCustomImageList.ResInstLoad

TcxCustomImageList.ResourceLoad

TcxCustomImageList Class

TcxCustomImageList Members

cxImageList Unit