32
Command Summary
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
6.6
9-Slices
6.1
Upload a
9-Slice File
Dec
Hex
ASCII
254 92 3
FE 5C 03
■
\
ETX
ID Size Data
ID Size Data
ID Size Data
v8.3
Upload a 9-slice file to a graphic display. To create a 9-slice see the 9-Slice File Creation section, for upload
protocol see the
File Transfer Protocol or XModem Transfer Protocol entries.
ID
Short
Unique 9-slice identification number, value between 0 and 1023.
Size
Integer
Size of the 9-slice file.
Data
Byte(s)
9-slice file data, see the 9-Slice File Creation example.
6.2
Upload a 9-
Slice Mask
Dec
Hex
ASCII
254 92 6
FE 5C 06
■
\
ACK
ID Size Data
ID Size Data
ID Size Data
v8.3
Upload a 9-slice mask that can clear areas of the screen before a 9-slice is drawn. Programmatically,
(9slice&mask) | (screen&~mask) is shown when a bitmap is drawn. To create a mask see the 9-Slice File Creation
section, for upload protocol see the
File Transfer Protocol or XModem Transfer Protocol entries.
ID
Short
Unique 9-slice mask identification number, value between 0 and 1023.
Size
Integer
Size of the entire mask file.
Data
Byte(s)
9-slice mask file data, see the 9-Slice File Creation example.
6.3
Display a
9-Slice
Dec
Hex
ASCII
254 91
FE 5B
■
[
ID X1 Y1 X2 Y2
ID X1 Y1 X2 Y2
ID X1 Y1 X2 Y2
v8.3
Displays a previously loaded 9-slice at the specified location.
ID
Short
Unique 9-slice identification number, value between 0 and 1023.
X1
Byte
Leftmost coordinate of the 9-slice.
Y1
Byte
Topmost coordinate of the 9-slice.
X2
Byte
Rightmost coordinate of the 9-slice.
Y2
Byte
Bottommost coordinate of the 9-slice.