On Wed, 13 Mar 2013, Andrew Burton wrote:
Hi,
I am in the process of working on a new Amiga game, but I have the
graphics saved in .PNG format. I could convert them to the much
easier to decompress .IFF format, but .PNG image save many more
bytes (e.g image is 15KB saved as an .IFF vs. 9KB as a .PNG).
I have sucessfully decoded all the easy stuff, but am currently trying
to decode the IDAT chunk (where the image data is stored).
The format of the data is defined as follows (straight out of the RFC1951
Deflate Compression document available online):
If you support amigaos 3.x and newer, you can just use the
datatype.library, it will open any format you have the datatypes installed
for and give you an object to work with.
If you are aiming for older versions of amigaos, there are libpng on
aminet
http://aminet.net/search?query=libpng .
regards
--
Jacob Dahl Pind |
telefisk.org | fidonet 2:230/38.8