22. High-level API Reference
302
www.yoctopuce.com
YDisplayLayer
displaylayer
→
drawPixel()
Draws a single pixel at the specified position.
js
function drawPixel(
x
,
y
)
cpp
int drawPixel( int
x
, int
y
)
m
-(int) drawPixel : (int)
x
: (int)
y
pas
function drawPixel(
x
: LongInt,
y
: LongInt): LongInt
vb
function drawPixel( ) As Integer
cs
int drawPixel( int
x
, int
y
)
java
int drawPixel( int
x
, int
y
)
uwp
Task<int> drawPixel( int
x
, int
y
)
py
def drawPixel(
x
,
y
)
php
function drawPixel(
$x
,
$y
)
es
function drawPixel(
x
,
y
)
cmd
YDisplay
target
[-layer
layerId
] drawPixel
x
y
Parameters :
x
the distance from left of layer, in pixels
y
the distance from top of layer, in pixels
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...