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
2010-01-31 21:21:58
thank you, if I don't find anything else I'll need to do it on my own ... D2009 is unreachable for me :(
migajek
2010-02-01 00:38:06
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
2010-02-01 08:39:15
@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
2010-02-01 09:50:20
@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
2010-02-01 09:52:47
@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
2010-02-01 15:16:51
+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
2010-01-31 21:31:02
I know ImageMagick however the problem is I need to extract the bitmaps on my own ...
migajek
2010-02-01 00:38:31
A:
The TImageList component in Delphi 2009 and up handles PNG and BMP files, among many others.
Nick Hodges
2010-02-01 05:19:26
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
2010-02-01 08:33:38