beautypg.com

Using the hex method 5-4, Using the hex method -4 – Avery Dennison Sierra Sport2 9460 Programmer Manual User Manual

Page 92

background image

U s i n g t h e H e x M e t h o d

The following steps explain how to derive a hex character string from a
bitmapped graphic.

Each square on the grid represents a dot. A black square indicates the dot
is ON, and a white square indicates the dot is OFF. A sequence of binary
numbers, called a bit pattern or bitmap, determines what dots are on and
off. The numbers “0" and ”1" are used for this purpose. The number “1"
turns a dot on and ”0" turns a dot off.

All hex numbers must be two digits. For example, write hex 0 as 00, or hex
E as 0E.

1.

Assign 1 to every black square and 0 to every white square.

00000000000000000000000000000000000000000000000000111111111111111111111111110000000000000000000000000000
00000000000000000000000000000000000000011111111111000000000000000000000000001111111110000000000000000000
00000000000000000000000000000000001111100000000000000000000000000000000000000000000001111110000000000000
00000000000000000000000000000011110000000000000000111111111111111111111111110000000000000001111000000000
00000000000000000000000001111100001111111111111111111111111111111111111111111111111111111110000111110000
00000000000000000000000110000011111111111111111111111111111111111111111111111111111111111111111000001100
00000000000000000000000110001111111111111111111111111111111111111111111111111111111111111111111111111110
00000000000000000000000111111111111111111111111111111111111111111111111111111111111111111111111111111110
00000000000000000000000111111111111111111111111111111000000000000000000011111111111111111111111111111110
00000000000000000000000111111111111111111111000000000000000000000000000000000000011111111111111111111100
00000000000000000000000001111111100000000000000000000111111111111111111100000000000000000011111111110000
00000000000000000000000000011111110000000000000000000111111111111111111100000000000000000001111111000000
00000000000000000000000000011100000000111111111111111111111111111111111111111111111111100000000111000000
00000000000000000000000000000000001111111111111111111111111111111111111111111111111111111110000111000000
00000000000000000000000000000011111111111111000000000000000000000000000000000000011111111111111000000000
00000000000000000000000000011111110000000000000000000111111111111111111100000000000000000001111111000000
00000000000000000000000000011100000000111111111111111111111111111111111111111111111111100000000111000000
00000000000000000000000000000000001111111111111111111111111111111111111111111111111111111110000111000000
00000000000000000000000000000011111111111111000000000000000000000000000000000000011111111111111000000000
00000000000000000000000000011111110000000000000000000111111111111111111100000000000000000001111111000000
00000000000000000000000000011100000000111111111111111111111111111111111111111111111111100000000111000000
00000000000000000000000000000000001111111111111111111111111111111111111111111111111111111110000111000000
00000000000000000000000000000011111111111111000000000000000000000000000000000000011111111111111000000000
00000000000000000000000000011111110000000000000000000111111111111111111100000000000000000001111111000000
00000000000000000000000000011100000000111111111111111111111111111111111111111111111111100000000111000000
00000000000000000000000000000000001111111111111111111111111111111111111111111111111111111110000111000000
00000000000000000000000000000011111111111111000000000000000000000000000000000000011111111111111000000000
00000000000000000000000000011111110000000000000000000111111111111111111100000000000000000001111111000000
00000000000000000000000000011100000000111111111111111111111111111111111111111111111111100000000111000000
00000000000000000000000000000000001111111111111111111111111111111111111111111111111111111110000111000000
00000000000000000000000000000011111111111111000000000000000000000000000000000000011111111111111000000000
00000010000000000000000000011111110000000000000000000111111111111111111100000000000000000001111111000000
00000011000000000000000000011100000000111111111111111111111111111111111111111111111111100000000111000000
00000001111000000000000000000000001111111111111111111111111111111111111111111111111111111110000111000000
00000000111000000000000000000011111111111111000000000000000000000000000000000000011111111111111000000000
00000000111111000000000000011100000000111111111111111111111111111111111111111111111111100000001111000000
00000000111111100000000000000000001111111111111111111111111111111111111111111111111111111110001111000000

5-4 Creating Graphics