Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: Marcb on April 21, 2009, 01:33:09 PM
-
Hi,
I've never learnt how to do this, does anyone know of a good tutorial that I can have a go at?
Cheers,
Marc
-
decode:
http://netghost.narod.ru/gff/vendspec/iff/iff.txt
or datatypes
-
Almost any image loader tutorial should cover the basics for something like BMP or TGA. Then you just need to replace the parsing of the TGA file with something suitable for the iff/ilbm image formats.
You can probably find a description of the image formats somewhere WotSits formats (i category) (http://www.wotsit.org/list.asp?al=I).
You could also try taking a look at the source for decoding those formats used in programs like the Gimp or Asset Importer.
Andy
EDIT: or rzookol could post that awesome that tells you just about everything you'll need :lol:
-
If you don't need something cross-platform, I'd suggest using IFFParse.library in AmigaOS 2+ or datatypes.library in AmigaOS 3+.
-
Reading up about this. This is now the way we are finnally going with XML
-
IFFParse.library in AmigaOS 2+
iffparse.library doesn't know anything about ILBM though, so you still need to have the ILBM specific code around.
-
I use iff.library
It is fast and simple and it can load to interleaved or noninterleaved bitmaps.
-
Thank you all for your replies,
I've got the Rkms and I'm working my way through the IFF specs, I guess I was trying to take a shortcut :-D