Topic: Feature request : LoadFromFile PNG
Hello Dmitry,
The title says it all, I'd like to be able to use PNG images as icons for my menus.
At the moment I do :
MyItem2.Bitmap.Width := 16;
MyItem2.Bitmap.Height := 16;
BMwanted:= TBitmap.Create;
BMwanted.LoadFromFile('.\icons\Search16.bmp');
MyItem2.BitMap.Canvas.Draw(0,0,BMwanted);
This works fine, but handling transparency with bitmaps is a pain in the *** if you see what I mean
It's doable but you have to generate the alpha channel and save in 32 bits bitmap... not fun.
I spotted the TCustomImageList in the classes list but failed to use it.
Do you think it would be a lot of work to implement PNG handling ?
Cheers
Mathias
Each time I get a divorce, I keep the house
Zaza Gabor