the last couple of weeks I worked on the integration
of PNG support into GBM (Generalised Bitmap Module).
Now it's finished and I donated it to GBM to make
it available for everyone.
I have written an adapter for PNG to Libpng and Zlib
just like for JPEG support. The latest library versions
Libpng 1.2.8 and Zlib 1.2.3 are used and statically
linked to the GBM.DLL.
It supports almost all PNG features except 16bit per
channel bitmaps. They can be loaded but are stripped down
to 24bit RGB (8 bits per channel).
There are several input and output options for overrides
like gamma, background and transparency. Just have a look
at gbm.htm or the GBM file dialog online help.
If you have applications using GBM.DLL you can upgrade
the library to get the PNG support for the application.
The library interface is fully backward compatible.
Some applications might be written in a way that they
will not automatically make use of PNG support even
though it would be possible.
I have uploaded the full package including source code
and binaries consisting of GBM.DLL, GBM command line tools,
an enhanced GBMV2-Viewer (1.20, now in English and German)
and the GBM file dialog (also in English and German) to Hobbes.
For the PM tools also different resources for Helv and WarpSans
fonts are included. The contained binaries are using WarpSans.
In case you want to build your own binaries, you'll find
makefiles for IBM VAC++ 3.08 in the package.
The source code of all required libs (IJG JPEG 6b,
Libpng 1.2.8 and Zlib 1.2.3) is part of the package but
of course you can get them also from the official sites.
Regards,
Heiko
adrian suri