Vcl.ImgList.TCustomImageList.Add
Delphi
function Add(Image, Mask: TBitmap): Integer;
C++
int __fastcall Add(Vcl::Graphics::TBitmap* Image, Vcl::Graphics::TBitmap* Mask);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ImgList.pas Vcl.ImgList.hpp |
Vcl.ImgList | TCustomImageList |
Description
Adds an Image and its Mask to the image list object.
Use the Add method to add images with their masks to an image list. It returns the index of the added image, or -1 if it fails. When the Masked property of the image list is false, the second bitmap is ignored; it can be set to nil (Delphi) or NULL (C++).
See Also
Code Examples