|
|
|
|
Functions
MioScript Reference
|
|
Syntax
Parameters
| STRING | Mode | Set the copy mode for the next graphic operations |
Return value
No value is returned.
Description
Set the copy mode for the next call of a graphic function such as draw.ID.copyFrom.ID.
The mode can be one of the following strings:
DstInvert
Inverts the image and ignores the source.
MergeCopy
Combines the target image and the source bitmap by using the Boolean AND operator.
MergePaint
Combines the inverted source bitmap with the image on the target image by using the Boolean OR operator.
NotSrcCopy
Copies the inverted source bitmap to the target image.
NotSrcErase
Combines the target bitmap and the source bitmap by using the Boolean OR operator, and inverts the result.
PatCopy
Copies the source pattern to the target bitmap.
PatInvert
Combines the source pattern with the target bitmap using the Boolean XOR operator
PatPaint
Combines the inverted source bitmap with the source pattern by using the Boolean OR operator. Combines the result of this operation with the target bitmap by using the Boolean OR operator.
SrcAnd
Combines target bitmap and source bitmap by using the Boolean AND operator.
SrcCopy
Copies the source bitmap to the target image (default mode).
SrcErase
Inverts the target bitmap and combines the result with the source bitmap by using the Boolean AND operator.
SrcInvert
Combines the target bitmap and the source bitmap by using the Boolean XOR operator. |
MioScript Sample Code
&myImage = loadImage("myImage.jpg")
draw.main.copyMode("NotSrcCopy")
draw.main.copyFrom.&myImage(
0,0,null,null,
0,0,null,null,
50,
false
)
draw.main.paint() |
|
|
|