ImageEn, unit iexBitmaps

TIEBitmap.AddToImageList

TIEBitmap.AddToImageList


Declaration

procedure AddToImageList(Dest: TCustomImageList);


Description

Adds the image with its alpha channel to a TImageList.

Notes:
- This process will modify the PixelFormat to ie32RGB
- You should set the ColorDepth of your ImageList to cd32bit


Example

// Add 32bit PNG images (with alpha channels) to a TImageList
ImageList.Clear;
ImageList.Height := 24;
ImageList.Width := 24;
ImageList.ColorDepth := cd32bit;

iebmp := TIEBitmap.Create;

iebmp.Read('D:\TransparentImage1.png');
iebmp.AddToImageList( ImageList );

iebmp.Read('D:\TransparentImage2.png');
iebmp.AddToImageList( ImageList );

iebmp.Read('D:\TransparentImage3.png');
iebmp.AddToImageList( ImageList );

iebmp.Read('D:\TransparentImage4.png');
iebmp.AddToImageList( ImageList );

iebmp.free;


See Also

- SynchronizeRGBA
- BMP_HandleTransparency
- CopyToTBitmap