22. High-level API Reference
318
www.yoctopuce.com
YDisplayLayer
displaylayer
→
setAntialiasingMode()
Enables or disables anti-aliasing for drawing oblique lines and circles.
js
function setAntialiasingMode(
mode
)
cpp
int setAntialiasingMode( bool
mode
)
m
-(int) setAntialiasingMode : (bool)
mode
pas
function setAntialiasingMode(
mode
: boolean): LongInt
vb
function setAntialiasingMode( ) As Integer
cs
int setAntialiasingMode( bool
mode
)
java
int setAntialiasingMode( boolean
mode
)
uwp
Task<int> setAntialiasingMode( bool
mode
)
py
def setAntialiasingMode(
mode
)
php
function setAntialiasingMode(
$mode
)
es
function setAntialiasingMode(
mode
)
cmd
YDisplay
target
[-layer
layerId
] setAntialiasingMode
mode
Anti-aliasing provides a smoother aspect when looked from far enough, but it can add fuzzyness when
the display is looked from very close. At the end of the day, it is your personal choice. Anti-aliasing is
enabled by default on grayscale and color displays, but you can disable it if you prefer. This setting has
no effect on monochrome displays.
Parameters :
mode
true
to enable antialiasing,
false
to disable it.
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...