
22. High-level API Reference
www.yoctopuce.com
311
YDisplayLayer
displaylayer
→
lineTo()
Draws a line from current drawing pointer position to the specified position.
js
function lineTo(
x
,
y
)
cpp
int lineTo( int
x
, int
y
)
m
-(int) lineTo : (int)
x
: (int)
y
pas
function lineTo(
x
: LongInt,
y
: LongInt): LongInt
vb
function lineTo( ) As Integer
cs
int lineTo( int
x
, int
y
)
java
int lineTo( int
x
, int
y
)
uwp
Task<int> lineTo( int
x
, int
y
)
py
def lineTo(
x
,
y
)
php
function lineTo(
$x
,
$y
)
es
function lineTo(
x
,
y
)
cmd
YDisplay
target
[-layer
layerId
] lineTo
x
y
The specified destination pixel is included in the line. The pointer position is then moved to the end
point of the line.
Parameters :
x
the distance from left of layer to the end point of the line, in pixels
y
the distance from top of layer to the end point of the line, in pixels
Returns :
YAPI_SUCCESS
if the call succeeds.
On failure, throws an exception or returns a negative error code.
Содержание Yocto-Display
Страница 1: ...Yocto Display User Manual...
Страница 2: ......
Страница 40: ...34 www yoctopuce com...
Страница 52: ...46 www yoctopuce com...
Страница 84: ...78 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...22 High level API Reference 152 www yoctopuce com On failure throws an exception or returns a negative error code...
Страница 422: ...416 www yoctopuce com...
Страница 424: ...24 Characteristics 418 www yoctopuce com...