ak10+@andrew.cmu.edu (Andrew Joseph Kompanek) (06/13/89)
I'd like to convert raw 8-bit image data ( that I've captured with hardware on a Sun workstation at work ) to IFF with as little pain as possible. I don't need an in depth understanding of the standard, I'd just like to know what the header looks like and how the data is interleaved for an IFF graphics file. The image is greyscale so 16 colors is fine (no HAM). I'd appreciate any responses. Thanks in advance, Drew Andrew Kompanek Carnegie Mellon University - Class of '92 Research Assistant - The Robotics Institute
kent@swrinde.nde.swri.edu (Kent D. Polk) (06/14/89)
In article <AYZ5Sty00W0GBoaYk6@andrew.cmu.edu> ak10+@andrew.cmu.edu (Andrew Joseph Kompanek) writes: >I'd like to convert raw 8-bit image data ( that I've captured with hardware [ to IFF]... Speaking of raw 8-bit data, is there a faster method of displaying 8-bit data than something like: for (y... { for (x... { SetAPen (rp, (int) (buffer_val >> 4)); WritePixel (rp, x, y); } } I have the 8-bit info in a buffer & need to perform user-specified color scale changes. Just changing the palette is way too coarse. I currently filter the SetApen color from bufferval to reflect the change while I'm WritePixeling the whole thing back out. Terribly slow, but I don't see another way to do it yet. The data is output from a reflective synthetic aperture program I wrote on a Sun. >I'd appreciate any responses. Me too. Thanks, Kent Polk