by index:
\i C ? G word::graphic_index
Parameter | Type | Range | Description |
---|---|---|---|
graphic_index | word | 0 ... max. graphic index | index of the graphic |
by name:
\i C ? G by_name::graphic_name
Parameter | Type | Range | Description |
---|---|---|---|
graphic_name | by_name | ASCII chars (0x01 .. 0xFF) | 0-terminated graphic name |
by filename:
\iC ? G file::graphic_filename
Parameter | Type | Range | Description |
---|---|---|---|
graphic_filename | by_file | DOS filename (8.3 format) | name and path of the graphics file |
Returns a structure of bytes containing information about the specified graphic.
Response: | [ACK] info [ACK] |
Bytes | Description |
---|---|
0 ... 1 | width of the graphic |
2 ... 3 | height of the graphic |
4 | graphic properties (refer to table below) |
5 ... 6 | number of frames (0 if not animated) |
7 ... 8 | graphic index |
9 ... 40 | graphic name (filled up with 0) |
byte 4 - graphic properties:
Bit | Description |
---|---|
0 | animated |
3 .. 4 | color depth (refer to table below) |
5 | transparent |
7 | disabled |
bits 3 and 4 - color depth:
Value | Description |
---|---|
0 | monochrome |
1 | 8 bit |
2 | 16 bit |
3 | 24 bit |
Note
Example
\iC?G\D5
\iC?G\mGRAPHIC\0
\iC?G\fDIR/FILE.RII\0
These commands will read the information structure of the graphic with index 5 and graphic "GRAPHIC" from the on-board flash as well as graphic "FILE.RII" from the SD card's "DIR" folder.
Response Example
[ACK]
[01][90]
[01][2C]
[31]
[00][0B]
[00][05]
[00][05]
anim[00][00]..[00]
[ACK]
Note
This response means that the requested graphic:
Not supported by: DPC3020, DPC2060, DPC10xx
See also:
Copyright © demmel products gmbh. All rights reserved.