![Yoctopuce Yocto-Display User Manual Download Page 307](http://html1.mh-extra.com/html/yoctopuce/yocto-display/yocto-display_user-manual_3418946307.webp)
22. High-level API Reference
www.yoctopuce.com
301
YDisplayLayer
displaylayer
→
drawImage()
Draws a GIF image at the specified position.
js
function drawImage(
x
,
y
,
imagename
)
cpp
int drawImage( int
x
, int
y
, string
imagename
)
m
-(int) drawImage : (int)
x
: (int)
y
: (NSString*)
imagename
pas
function drawImage(
x
: LongInt,
y
: LongInt,
imagename
: string): LongInt
vb
function drawImage( ) As Integer
cs
int drawImage( int
x
, int
y
, string
imagename
)
java
int drawImage( int
x
, int
y
, String
imagename
)
uwp
Task<int> drawImage( int
x
, int
y
, string
imagename
)
py
def drawImage(
x
,
y
,
imagename
)
php
function drawImage(
$x
,
$y
,
$imagename
)
es
function drawImage(
x
,
y
,
imagename
)
cmd
YDisplay
target
[-layer
layerId
] drawImage
x
y
imagename
The GIF image must have been previously uploaded to the device built-in memory. If you experience
problems using an image file, check the device logs for any error message such as missing image file
or bad image file format.
Parameters :
x
the distance from left of layer to the left of the image, in pixels
y
the distance from top of layer to the top of the image, in pixels
imagename
the GIF file name
Returns :
YAPI_SUCCESS
if the call succeeds.
On failure, throws an exception or returns a negative error code.
Summary of Contents for Yocto-Display
Page 1: ...Yocto Display User Manual...
Page 2: ......
Page 40: ...34 www yoctopuce com...
Page 52: ...46 www yoctopuce com...
Page 84: ...78 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 422: ...416 www yoctopuce com...