Monochrome Bitmap Example
[rev. 11/5/2006]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Uncompressed data in binary (12 x 36 pixels = 432 bits):

000000100000000000000000000000001110
000001000000000000000000000001110000
000011000000000000000000001111000000
000011000000000000000001111000000000
000111000000000000011111100000000000
000111000000000111111100000000000000
001111100001111111110000000000000000
001111111111111111000000000000000000
001111111111111100000000000000000000
001111111111100000000000000000000000
001111111110000000000000000000000000
000111111000000000000000000000000000

 

 

Can you see the picture in the pattern of 1’s and 0’s?

Next, separate the binary data into groups of 4 bits:

0000    0010    0000    0000    0000    0000    0000    0000    1110
0000    0100    0000    0000    0000    0000    0000    0111    0000
0000    1100    0000    0000    0000    0000    0011    1100    0000
0000    1100    0000    0000    0000    0001    1110    0000    0000
0001    1100    0000    0000    0001    1111    1000    0000    0000
0001    1100    0000    0001    1111    1100    0000    0000    0000
0011    1110    0001    1111    1111    0000    0000    0000    0000
0011    1111    1111    1111    1100    0000    0000    0000    0000
0011    1111    1111    1111    0000    0000    0000    0000    0000
0011    1111    1111    1000    0000    0000    0000    0000    0000
0011    1111    1110    0000    0000    0000    0000    0000    0000
0001    1111    1000    0000    0000    0000    0000    0000    0000

 

 

Now, translate into hex (54 bytes total):

02 00 00 00 E0 40 00 00 70
0C 00 00 3C 00 C0 00 1E 00
1C 00 1F 80 01 C0 1F C0 00
3E 1F F0 00 03 FF FC 00 00
3F FF 00 00 03 FF 80 00 00
3F E0 00 00 01 F8 00 00 00

 

Remember that the protocol may require additional bytes for the header and terminator of the file.