22. High-level API Reference
www.yoctopuce.com
303
YDisplayLayer
displaylayer
→
drawRect()
Draws an empty rectangle at a specified position.
js
function drawRect(
x1
,
y1
,
x2
,
y2
)
cpp
int drawRect( int
x1
, int
y1
, int
x2
, int
y2
)
m
-(int) drawRect : (int)
x1
: (int)
y1
: (int)
x2
: (int)
y2
pas
function drawRect(
x1
: LongInt,
y1
: LongInt,
x2
: LongInt,
y2
: LongInt): LongInt
vb
function drawRect( ) As Integer
cs
int drawRect( int
x1
, int
y1
, int
x2
, int
y2
)
java
int drawRect( int
x1
, int
y1
, int
x2
, int
y2
)
uwp
Task<int> drawRect( int
x1
, int
y1
, int
x2
, int
y2
)
py
def drawRect(
x1
,
y1
,
x2
,
y2
)
php
function drawRect(
$x1
,
$y1
,
$x2
,
$y2
)
es
function drawRect(
x1
,
y1
,
x2
,
y2
)
cmd
YDisplay
target
[-layer
layerId
] drawRect
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...