
22. High-level API Reference
288
www.yoctopuce.com
YDisplay
display
→
swapLayerContent()
Swaps the whole content of two layers.
js
function swapLayerContent(
layerIdA
,
layerIdB
)
cpp
int swapLayerContent( int
layerIdA
, int
layerIdB
)
m
-(int) swapLayerContent : (int)
layerIdA
: (int)
layerIdB
pas
function swapLayerContent(
layerIdA
: LongInt,
layerIdB
: LongInt): LongInt
vb
function swapLayerContent( ) As Integer
cs
int swapLayerContent( int
layerIdA
, int
layerIdB
)
java
int swapLayerContent( int
layerIdA
, int
layerIdB
)
uwp
Task<int> swapLayerContent( int
layerIdA
, int
layerIdB
)
py
def swapLayerContent(
layerIdA
,
layerIdB
)
php
function swapLayerContent(
$layerIdA
,
$layerIdB
)
es
function swapLayerContent(
layerIdA
,
layerIdB
)
cmd
YDisplay
target
swapLayerContent
layerIdA
layerIdB
The color and transparency of all the pixels from the two layers are swapped. This method only affects
the displayed content, but does not change any property of the layer objects. In particular, the visibility
of each layer stays unchanged. When used between onae hidden layer and a visible layer, this method
makes it possible to easily implement double-buffering. Note that layer 0 has no transparency support
(it is always completely opaque).
Parameters :
layerIdA
the first layer (a number in range 0..layerCount-1)
layerIdB
the second layer (a number in range 0..layerCount-1)
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...