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