beautypg.com

Bitmap file creation – Matrix Orbital GLK240128-25 User Manual

Page 36

background image

Command Summary

31

5.5 Draw a Bitmap
Directly

Dec
Hex
ASCII

254 100

FE 64

■ d

X1 Y1 Data
X1 Y1 Data
X1 Y1 Data

v8.0

Draw a bitmap directly to the graphic display without saving to memory. Cannot be implemented in a script.

X1

Byte

Leftmost coordinate of bitmap.

Y1

Byte

Topmost coordinate of bitmap.

Data

Byte(s)

Bitmap file data, see the 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 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 27: Smiley Face Bitmap

0

1

0

1

0

0 0 0 0 0

1

0 0 0

1

0

1 1 1

0

Table 28: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 29: Example Bitmap File

Header

5 4

Bitmap Data

80 34 224

This manual is related to the following products: