Introduction
MacPaint was the paint program Apple shipped with the first Macintosh in 1984, written by Bill Atkinson. Its documents hold one black and white page of 576 × 720 pixels, the size of a printed page on the ImageWriter at 72 dots per inch.
On the Mac the files have the type code PNTG and need no extension.
Copied to other systems they are usually named .mac or
.pntg.
Structure
The file has a 512-byte header: a 4-byte version number, then 38 fill patterns of 8 bytes each, then unused space. A version of 0 means the default patterns, and a writer may simply write 512 zero bytes. See Header.
The picture follows as 720 rows of 72 bytes, one bit per pixel, with 1 meaning black. Each row is compressed on its own with PackBits, the Mac’s run-length scheme, so a file is at most 53,072 bytes and usually about 10 KB. See Bitmap.
A file copied off a Mac may have a 128-byte MacBinary header in front, which holds the Mac file name, type and creator. Readers check for it and skip it.
0Version4 bytes4Patterns 38 fill patterns of 8 bytes304 bytes308Unused204 bytes512Picture 720 rows, each PackBits compressedvaries
Not described
The header and bitmap pages follow Apple Technical Notes PT24 and TN1023.
Known, not yet covered
- Viewer: there is no MacPaint plugin yet.
- Reference: CiderPress accepts version values 0 to 3; PT24 defines only 0 and 2, and the pages state PT24’s.
Unknown
- Reference: which of the 38 patterns in the header is which palette slot: PT24 does not say, and gives no bit order beyond the standard QuickDraw
Pattern. - Reference: the MacBinary prefix that files often carry is not part of MacPaint and is described only as reader practice (from MacBinary itself).
Links
Software
- MacPaint – Apple’s original paint program that made these files (classic Mac OS)
- GraphicConverter – image viewer and converter that reads many old Mac formats, including MacPaint (macOS)
- RECOIL – viewer and converter for retro computer pictures, including MacPaint (Windows, macOS, Linux, web browser)
Reference
- MacPaint Document Format – Apple Technical Note PT24, the header, the bitmap and sample code
- Understanding PackBits – Apple Technical Note TN1023, the compression each row uses