CompuServe Thread

#C Help Needed!

2 messages in this thread
#17493From: Steve Jackson GamesDec 9, 1991 5:13 PM
The Problem: I need load an IFF picture file (non-HAM) and dump a color value for each pixel into a text file. In other words, if I load a 16-color picture, I would start in the upper left corner and work across, writing a 0 through F for each pixel. Any pointers toward source code that will get me started toward this? I understand that 2.04 has some IFF routines built into the libraries based on Schwab & Fergeson's IFF library, but the 2.0 Lib manuals aren't out yet. 🙁 My environment is SAS 5.10, A3000, lots o' RAM & storage. I have done a moderate amount of C on the PC, but haven't done anything on the Amiga since I sold my A1000 many years ago. Thanks! Loyd Blankenship
#17524From: Michael A McCormickDec 9, 1991 10:48 PM
In the Amiga ROM KERNEL Reference Manual there is an entire section devoted to IFF that includes several subroutines and such to read and create IFF data. This was all I needed to make a program that converts DPaint brushes into Images suitable for Intuition. I'd certainly hope that the 1.3 manuals' information is upwards compatible with 2.0, you can at least get the decompression formulas there. Mike McC