Manual Page Result
0
Command: bitfile | Section: 9 | Source: UNIX v10 | File: bitfile.9
BITFILE(9.5) BITFILE(9.5)
NAME
bitfile - format of bitmap file
DESCRIPTION
Binary files produced by blitblt(9.1) and other bitmap-generating pro-
grams are formatted as follows:
Byte no. Description
0, 1: Zero.
2, 3: x-coordinate of the rectangle origin (low-order byte, high-
order byte).
4, 5: Y-coordinate of the rectangle origin (low-order byte, high-
order byte).
6, 7: x-coordinate of the rectangle corner (low-order byte, high-
order byte).
8, 9: Y-coordinate of the rectangle corner (low-order byte, high-
order byte).
remainder: Compressed raster data. Each raster is exclusive-or'd with
the previous one, and zero-extended (if necessary) to a
16-bit boundary. It is then encoded into byte sequences,
each of which consists of a control byte followed by two or
more data bytes:
Control Data
n (< 127) 2xn bytes of raster data, running from left to right.
0x80+n 2 bytes of raster data, to be replicated from left to right
n times.
There are also two ASCII formats in current use. Textures and 16x16
icons, as created by icon(9.1), are encoded as a Texture declaration
with initializer, to be copied unchanged into C program source; see
types(9.5). Faces and other large icons are without any surrounding C
syntax. In either case, each scan line of the bitmap is a comma-sepa-
rated list of C-style short hexadecimal constants; scan lines are sepa-
rated by newlines.
SEE ALSO
blitblt(9.1), icon(9.1), types(9.5), vismon(9.1)
BITFILE(9.5)