22. High-level API Reference
www.yoctopuce.com
243
YDisplay
display
→
copyLayerContent()
Copies the whole content of a layer to another layer.
js
function copyLayerContent(
srcLayerId
,
dstLayerId
)
cpp
int copyLayerContent( int
srcLayerId
, int
dstLayerId
)
m
-(int) copyLayerContent : (int)
srcLayerId
: (int)
dstLayerId
pas
function copyLayerContent(
srcLayerId
: LongInt,
dstLayerId
: LongInt): LongInt
vb
function copyLayerContent( ) As Integer
cs
int copyLayerContent( int
srcLayerId
, int
dstLayerId
)
java
int copyLayerContent( int
srcLayerId
, int
dstLayerId
)
uwp
Task<int> copyLayerContent( int
srcLayerId
, int
dstLayerId
)
py
def copyLayerContent(
srcLayerId
,
dstLayerId
)
php
function copyLayerContent(
$srcLayerId
,
$dstLayerId
)
es
function copyLayerContent(
srcLayerId
,
dstLayerId
)
cmd
YDisplay
target
copyLayerContent
srcLayerId
dstLayerId
The color and transparency of all the pixels from the destination layer are set to match the source
pixels. This method only affects the displayed content, but does not change any property of the layer
object. Note that layer 0 has no transparency support (it is always completely opaque).
Parameters :
srcLayerId
the identifier of the source layer (a number in range 0..layerCount-1)
dstLayerId
the identifier of the destination 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...