bach@vax1.acs.udel.EDU (Baskaran Subramaniam) (07/15/88)
Can someone tell me the format used to store a MacPaint file? I guess it uses some sort of packing algorithm. I want to interpret a Macpaint file and use it as data on an IBM PC/AT. Baskaran Subramaniam Dept. of Psychology Univ. of Delaware.
nicky@cup.portal.com (07/16/88)
The MacPaint file represents a compressed bitmap of an 8X10 inch area at 72 pixels per inch, 576X720 pixels. It consists of a 512 byte header (can be ignored) followed by 720 compressed horizontal scanlines. The Macintosh tookbox routines PackBits and UnpackBits are used to pack and unpack the bits repectively. Given this, you will have to write your own algorithm to unpack the bitmap. Technote #86 talks about MacPaint file format and #171 talks about the PackBIts routine.