Back to Devexpress

TcxCustomImageList.AddMasked(TGraphic,TColor) Method

vcl-cximagelist-dot-tcxcustomimagelist-dot-addmasked-x28-vcl-dot-graphics-dot-tgraphic-vcl-dot-graphics-dot-tcolor-x29.md

latest3.6 KB
Original Source

TcxCustomImageList.AddMasked(TGraphic,TColor) Method

Appends the specified image masked with a color to the image list.

Declaration

delphi
function AddMasked(AImage: TGraphic; AMaskColor: TColor): Integer;

Parameters

NameTypeDescription
AImageTGraphic

A source image container.

| | AMaskColor | TColor |

A transparency mask color.

|

Returns

TypeDescription
Integer

The index of the image passed as the AImage parameter if the add operation is successful; otherwise, -1.

|

Remarks

Note

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

See Also

TcxCustomImageList.Add

TcxCustomImageList.AddBitmap

TcxCustomImageList.AddIcon

TcxCustomImageList.AddImage

TcxCustomImageList.AddImages

TcxCustomImageList.Clear

TcxCustomImageList.CopyImages

TcxCustomImageList.Delete

TcxCustomImageList.FileLoad

TcxCustomImageList.GetInstRes

TcxCustomImageList.Insert

TcxCustomImageList.InsertIcon

TcxCustomImageList.InsertMasked

TcxCustomImageList.LoadImage

TcxCustomImageList.Replace

TcxCustomImageList.ReplaceIcon

TcxCustomImageList.ReplaceMasked

TcxCustomImageList.ResInstLoad

TcxCustomImageList.ResourceLoad

TcxCustomImageList Class

TcxCustomImageList Members

cxImageList Unit