[Overview][Types][Classes][Index] Reference for unit 'ImgList' (#lcl)

TCustomImageList.Add

Adds an Image and Mask bitmap to the list. Returns the index of the added image or -1 if unsucessful.

Declaration

Source position: imglist.pp line 169

public function TCustomImageList.Add(

  Image: TCustomBitmap;

  Mask: TCustomBitmap

):Integer;

Arguments

Image

  

a bitmap image

Mask

  

a bitmap which defines the transparent parts of Image

Function result

The index of the added image, -1 if unsuccesful.

Description

Adds one or more (bitmap width / imagelist width) bitmaps to the list.
  If Mask is nil, the image has no transparent parts.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.