22. High-level API Reference
314
www.yoctopuce.com
YDisplayLayer
displaylayer
→
selectColorPen()
Selects the pen color for all subsequent drawing functions, including text drawing.
js
function selectColorPen(
color
)
cpp
int selectColorPen( int
color
)
m
-(int) selectColorPen : (int)
color
pas
function selectColorPen(
color
: LongInt): LongInt
vb
function selectColorPen( ) As Integer
cs
int selectColorPen( int
color
)
java
int selectColorPen( int
color
)
uwp
Task<int> selectColorPen( int
color
)
py
def selectColorPen(
color
)
php
function selectColorPen(
$color
)
es
function selectColorPen(
color
)
cmd
YDisplay
target
[-layer
layerId
] selectColorPen
color
The pen color is provided as an RGB value. For grayscale or monochrome displays, the value is
automatically converted to the proper range.
Parameters :
color
the desired pen color, as a 24-bit RGB value
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...