
22. High-level API Reference
www.yoctopuce.com
297
YDisplayLayer
displaylayer
→
drawBar()
Draws a filled rectangular bar at a specified position.
js
function drawBar(
x1
,
y1
,
x2
,
y2
)
cpp
int drawBar( int
x1
, int
y1
, int
x2
, int
y2
)
m
-(int) drawBar : (int)
x1
: (int)
y1
: (int)
x2
: (int)
y2
pas
function drawBar(
x1
: LongInt,
y1
: LongInt,
x2
: LongInt,
y2
: LongInt): LongInt
vb
function drawBar( ) As Integer
cs
int drawBar( int
x1
, int
y1
, int
x2
, int
y2
)
java
int drawBar( int
x1
, int
y1
, int
x2
, int
y2
)
uwp
Task<int> drawBar( int
x1
, int
y1
, int
x2
, int
y2
)
py
def drawBar(
x1
,
y1
,
x2
,
y2
)
php
function drawBar(
$x1
,
$y1
,
$x2
,
$y2
)
es
function drawBar(
x1
,
y1
,
x2
,
y2
)
cmd
YDisplay
target
[-layer
layerId
] drawBar
x1
y1
x2
y2
Parameters :
x1
the distance from left of layer to the left border of the rectangle, in pixels
y1
the distance from top of layer to the top border of the rectangle, in pixels
x2
the distance from left of layer to the right border of the rectangle, in pixels
y2
the distance from top of layer to the bottom border of the rectangle, 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...