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

TCustomImageList.AddMasked

Adds one or more (bitmap width / imagelist width) transparent bitmaps to the list.

Declaration

Source position: imglist.pp line 172

public function TCustomImageList.AddMasked(

  Image: TBitmap;

  MaskColor: TColor

):Integer;

Arguments

Image

  

The bitmap to be added.

MaskColor

  

The color acting as transparant color.

Function result

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

Description

Every pixel of MaskColor will become transparent.

Image can contain multiple images of the same Width and Height. The image width must be a multiple of Width, and the image height must equal Height, else all old images in the list are discarded.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.