Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | draw.ID.copyMode SEARCH    

  Functions
draw.ID.brushFrom.ID
draw.ID.copyFrom.ID
draw.ID.copyMode
draw.ID.ellipse
draw.ID.getPixel
draw.ID.height
draw.ID.isEgual.ID
draw.ID.line
draw.ID.load
draw.ID.paint
draw.ID.pixelFormat
draw.ID.polygon
draw.ID.rect
draw.ID.rotate.sourceID
draw.ID.save
draw.ID.setPixel
draw.ID.size
draw.ID.text.ex
draw.ID.text.ex.getWidth
draw.ID.width
draw.isEgual.X
draw.isEgual.Y
draw.mem.create
draw.mem.createFromFile
draw.mem.delete
draw.mem.exists
draw.mx.deform
draw.mx.effects

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
draw.ID.copyMode

Language: MioScript
Product: MioFactory


Syntax

draw.ID.copyMode(Mode)


Parameters

STRINGModeSet 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()