[comp.graphics] Tiff and MacPaint formats

hallett@mrsvr.UUCP (Jeff Hallett) (08/09/89)

I lost the original posting, so I hope this subject is adequate.
I cannot help with the TIFF format, but MacPaint is easy.

The first 512 bytes are worthless to anyone except MacPaint.  The
rest of the file is 720 compressed rows representing 576 bits each.
These constants are always true regardless of the picture size.  The
compression scheme is quite basic and is based on repetitions under
127.  The approach, approximately (I don't have the reference handy)
is that if a character's int value is > 127, then the next char is
repeated thisChar - 127 times.  Otherwise, the character is used as
is.  For a complete spec, check out Jeff Poskanzer's portable bit
map package, specifically, macptopbm.

Hope this helps.


-- 
                Jeffrey A. Hallett, PET Software Engineering
                    GE Medical Systems, W641, PO Box 414
                            Milwaukee, WI  53201
           (414) 548-5173 : EMAIL -  hallett@postron.gemed.ge.com