RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomImageList.Add Method

Adds an Image and its Mask to the image list object.

Pascal
function Add(Image: TBitmap; Mask: TBitmap): Integer;
C++
__fastcall int Add(TBitmap Image, TBitmap Mask);

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++). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!