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.
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...