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