Delphi XE2: How to draw transparent GIF images on toolbar using TImageList

1k Views Asked by At

Using: Delphi XE2; VCL Forms application

Is it possible to draw transparent GIF images on an ActionToolbar (with ActionManager) using TImageList?

I have been trying but what I get is a black background on the toolbuttons.

The GIF images are 256 colors; and have transparency (verified by opening the images in Corel PaintShopPro).

On the ImageList, I have set the properties:

ColorDepth := cd32bit, DrawingStyle := dsTransparent.

Screen captures of the form at design-time and run-time:

enter image description here

enter image description here

Any tips or workaround is appreciated!

1

There are 1 best solutions below

1
On

Save your GIF as PNG. The PNG has alpha channel and supports semi transparency