I want to load a PNG with transparent background in a TImageList and use it in a TMainMenu (via TAction).
However, in Delphi the background is just black. Is PNG support only half implemented in Delphi?
This guy says it worked for him but with a button instead of a main menu.
My setup:
- My image is 8 bit per color plus 8 bit for transparency channel (I have tried also with 1 bit for transparency but still doesn't work). The image looks just fine in any other program.
- Delphi XE.
- In TImageList's editor the 'transparent color' and 'Fill color' are set to 'Default' and are disabled.
ColorDepth
must be setted tocd32Bit
– RRUZcd32Bit
and then load the images whichmust be in 32 bpp png format.
– RRUZ