24
4.3
Draw a Bitmap
Directly
Dec
Hex
ASCII
254 100
FE 64
■
d
X Position Y Position Width Height Data
X Position Y Position Width Height Data
X Position Y Position Width Height Data
Draw a bitmap directly to the graphic display without saving to memory.
X Position
1 byte, leftmost coordinate of bitmap
Y Position
1 byte, topmost coordinate of bitmap
Width
1 byte, width of bitmap
Height
1 byte, height of bitmap
Data
bitmap dependent, see Bitmap File Creation example
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 only 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