views:

802

answers:

3

Recently I've found TPngImageList component ( http://cc.embarcadero.com/Item/26127 ) which is very good, but it handles only png images ... I'd like to have some imagelist that allows combining of pngimages with bitmaps, as I'm using lots of bitmaps, and I do not want to spend coming week converting those bitmaps to pngs, yet I want to use be able to add PNG images for coming features ... So far I used to convert the PNGs to bitmaps using GIMP if I wasn't able to find any replacement.

+2  A: 

png2bmp and bmp2png come to the rescue for automated commandline conversion of those image files.

As of Delphi 2009, the TImageList supports PNG images natively as Nick Hodges announced.

Jeroen Pluimers
thank you, if I don't find anything else I'll need to do it on my own ... D2009 is unreachable for me :(
migajek
The component you are mentioning is meant for D2009/2010. Although the code should be compatible for D7 and up, there are files missing for Delphi versions below D2009. Due to a license change these files are no more available (or better: may not be distributed any longer).
Uwe Raabe
@michal: please add a tag on which Delphi version (i.e. [delphi-7]) to your post. That makes it easier for participants to tailor their answer to your specifics.
Jeroen Pluimers
@Uwe It is indeed a pitty that TPNGImage is not available in Delphi 2007. There are other implementations of PNG support for Delphi and downloads of the old material are still available. Depending on your country of origin, that might be legal or not. http://www.google.nl/search?q=TPNGImage
Jeroen Pluimers
@Jeroen: I'm glad to keep a copy of the old files in a safe place. The intent for maintaining TPngImageList is simply the fact that I wanted to be compatible with my pre-D2009 code.
Uwe Raabe
+1  A: 

This doesnt answer your question, but if you do need to convert them all may I suggest the wonderful ImageMagik over GIMP, it will make your life super easy and convert all your files with one easy script.

Toby Allen
I know ImageMagick however the problem is I need to extract the bitmaps on my own ...
migajek
A: 

The TImageList component in Delphi 2009 and up handles PNG and BMP files, among many others.

Nick Hodges
As of my knowledge and supported through a quick check Delphi 2007 doesn't support PNG files in TImageList. This was introduced in Delphi 2009.
Uwe Raabe
Oops -- you are right. Corrected.
Nick Hodges
Now make it available for Delphi 2007 ;-)
Jeroen Pluimers