One of Delphi 2009's advertised features was PNG support. That's great, because the Unicode issues break the pngimage.pas library I was using before. Only problem is, I can't find the Delphi 2009 version. Anyone know what it's called, and how difficult it is to migrate existing pngimage.pas-based code to the new library?
All VCL image support in Delphi is provided via TImage. If you want to display a PNG image, simply drop a TImage control and then load a PNG image into the Picture property.
If you want to manipulate a PNG image in code (i.e., not display it) then you can add
pngimage
to your uses clause, and then use the TPNGImage class directly.
On my machine, PNGImage.pas is found at:
C:\Program Files\CodeGear\RAD Studio\6.0\source\Win32\vcl\Imaging\PNGImage\pngimage.pas
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