Datamax-O'Neil PrintPAD AN-04 (LP) User Manual

Page 2

Advertising
background image







To form this image digitally, we would make the black pixels (represented by X’s) a ONE bit and the white areas

a ZERO bit:


000000000011110000000000
000000001111111100000000
000000011000000110000000
000000110011110011000000
000001100011110001100000
000011000011110000110000
000001101011110001100000
000000110011110011000000
000000011000000110000000
000000001111111100000000
000000000011110000000000

Now we can separate these out into bytes with each byte representing 8 bits, or pixels. This would be a true binary
representation of the bitmap of our image.


00000000 00111100 00000000
00000000 11111111 00000000
00000001 10000001 10000000
00000011 00111100 11000000
00000110 00111100 01100000
00001100 00111100 00110000
00000110 00111100 01100000
00000011 00111100 11000000
00000001 10000001 10000000
00000000 11111111 00000000
00000000 00111100 00000000

Since most programmers do not work in Binary, we’ll convert the binary image into HEX;


0x00 0x3C 0x00
0x00 0xFF 0x00
0x01 0x81 0x80
0x03 0x3C 0xC0
0x06 0x3C 0x60
0x0C 0x3C 0x30
0x06 0x3C 0x60
0x01 0x81 0x80
0x00 0xFF 0x00
0x00 0x3C 0x00

Advertising
This manual is related to the following products: