pbm (5)
portable bitmap file format
DESCRIPTION
P1
# feep.pbm
24 7
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0
0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0
0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 0
0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0
0 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Programs that read this format should be as lenient as possible,
accepting anything that looks remotely like a bitmap.
There is also a variant on the format, available
by setting the RAWBITS option at compile time. This variant is
RAWBITS
different in the following ways:
The "magic number" is "P4" instead of "P1".
The bits are stored eight per byte, high bit first low bit last.
No whitespace is allowed in the bits section, and only a single character
of whitespace (typically a newline) is allowed after the height.
The files are eight times smaller and many times faster to read and write.
SEE ALSO
AUTHOR
Copyright (C) 1989, 1991 by Jef Poskanzer.
|