beautypg.com

Bitmap file creation, Bitmap masking – Matrix Orbital GLK19264A-7T-1U User Manual

Page 35

background image

30

Command Summary

Bitmap File Creation

In addition to fonts, Matrix Orbital graphic displays can also hold a number of customizable bitmaps to
provide further stylistic product integration. Like font files, bitmaps files are most easily uploaded to a
display using MOGD#. However, the critical data component of the bitmap upload command is detailed
below for reference.

The bitmap data block is similar to that of a font. However, as a bitmap is a single glyph, only a simple
two byte header is required. First, one byte representing the bitmap width is sent, then one byte for the
height. Each bitmap is merely encoded in binary fashion using a series of ones and zeroes. Again a grid
can be created using the width and height specified in the upload command, populated in the manner
above, and converted into byte values. A smiley face example is shown below to indicate the ultimate
affect of the Matrix Orbital graphic stylization ability.

Table 24: Smiley Face Bitmap

0

1

0

1

0

0 0 0 0 0

1

0 0 0

1

0

1 1 1

0

Table 25:Smiley Face Data

0

1

0

1

0 0 0 0

50

80

0 0

1

0 0 0

1

0

22

34

1 1 1

0 0 0 0 0

E0 224

Table 26: Example Bitmap File

Header

5 4

Bitmap Data

80 34 224

Bitmap Masking

Like a regular bitmap, a mask can be loaded to the display and used to create a more polished result
when drawing in populated areas. When defining a mask, all active values will clear any background
information, while any inactive values will leave it untouched. This is best described with an example.

Figure 17: Drawing without a Mask

Figure 18: Drawing with a Mask