www.4dsystems.com.au
µ
V
G
A
-PICASO-
MD1
25
6.1.13
Display
I
mage
(
I
)
Serial Syntax :
cmd, x
(msb:lsb),
y
(msb:lsb),
width
(msb:lsb),
height
(msb:lsb),
colourMode
,
pixel1
, ..
pixelN
4DGL Syntax :
(refer to 4DGL programmers manual)
cmd :
49
hex
, I
ascii
x :
Image horizontal start position (top left corner). 2 bytes.
y :
Image vertical start position (top left corner). 2 bytes.
width :
horizontal size of the image. 2 bytes.
height :
vertical size of the image. 2 bytes.
colourMode :
8
dec = 256 colour mode, 8bits/1byte per pixel
16
dec = 65K colour mode, 16bits/2bytes per pixel(msb:lsb)
Note:
µ
V
G
A
-PICASO-
MD1
only supports 256 colours.
pixel1..pixelN :
image pixel data and N is the total number of pixels
N = height x width
Description :
This command displays a bitmap image on to the screen with the top
left corner specified by
(x, y)
and size of the image specified by
width
and
height
parameters. This command is more effective than using the “Put Pixel” command,
where there are no overheads in specifying the
x, y
location of each pixel.