Laptop User's Manual

260
Chapter 8 Bit Image Graphics
Figure 29. Bit Image Pattern Plan
A bit image pattern is easily defined by determining the decimal equivalent of
the binary data byte. This decimal value may then be included in a program
data statement that generates the final Bit Image pattern. To determine the
decimal value of a data byte, the decimal weights for each dot are added
together. For the seven bytes shown in Figure 29, the decimal values are
computed as shown in Table 76.
Table 76. Example Bit Image Pattern Decimal Values
Bit Image
Data Byte Decimal Weight Decimal Value
1
st
byte
64 + 8 + 1 = 73
2
nd
byte
128 + 16 + 2 = 146
3
rd
byte
32 + 4 = 36
4
th
byte
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
5
th
byte
32 + 4 = 36
6
th
byte
128 + 16 + 2 = 146
7
th
byte
64 + 8 + 1 = 73
1st Bit Image Data Byte
2nd Bit Image Data Byte
7th Bit Image Data Byte
Decimal
Weights
73 36 36 73
146 255 146
Decimal
Values
128
64
32
16
8
4
2
1