I'd like to load and save TPngImageList (Delphi7 version, PngComponents) from/to file (better single PNG file for all 20 png icons in image list). I can't find LoadFromFile/SaveToFile methods.
How to do it?
TPngImageList derives from TImageList, which does not support that for bitmaps/icons, and TPngImageList does not add support for it for pngs.
You will have to load the file into a TPNGImage first, then manually split it (which is not easy, if transparency/alpha is involved) into pieces that you can Add() into the TPngImageList.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With