summaryrefslogtreecommitdiff
path: root/static/unix-v10/man9/bitfile.9
blob: f31e2c9c8a66f6691415ba9996ee08c3708ac21b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.TH BITFILE 9.5
.CT 1 comm_other
.SH NAME
bitfile \- format of bitmap file
.SH DESCRIPTION
Binary files produced by
.IR blitblt (9.1)
and other bitmap-generating programs
are formatted as follows:
.TP 12
Byte no.
Description
.TP
0, 1:
Zero.
.TP
2, 3:
.IR x -coordinate
of the rectangle origin (low-order byte, high-order byte).
.TP
4, 5:
.IR Y -coordinate
of the rectangle origin (low-order byte, high-order byte).
.TP
6, 7:
.IR x -coordinate
of the rectangle corner (low-order byte, high-order byte).
.TP
8, 9:
.IR Y -coordinate
of the rectangle corner (low-order byte, high-order byte).
.TP
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:
.TP 12
Control
Data
.TP
.IR n " (< 127)"
.RI 2\(mu n
bytes of raster data, running from left to right.
.TP
.BI "0x80+" n
2 bytes of raster data, to be replicated from left to right
.I n
times.
.LP
There are also two
.SM ASCII
formats in current use.
Textures and 16\(mu16 icons,
as created by
.IR icon (9.1),
are encoded as a
.B Texture
declaration with initializer,
to be copied unchanged into C program source; see
.IR 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-separated list of C-style short
hexadecimal constants; scan lines are separated by newlines.
.SH "SEE ALSO"
.IR blitblt (9.1), 
.IR icon (9.1), 
.IR types (9.5), 
.IR vismon (9.1)