开发者

Delphi, ImageList that handles BOTH png and bitmaps

开发者 https://www.devze.com 2022-12-18 21:21 出处:网络
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 combinin开发者

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 combinin开发者_开发技巧g 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.


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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号