| Copy |
Function
The Copy function copies selected channels from Image B to
Image A (replacing the images entirely). It is common to copy over the alpha
channel. To copy channels within
the same image, use Reorder. SwitchMatte depends on Copy,
but is a macro with MMult and Invert placed
inside of the node.
|
Parameters
|
Type
|
Defaults
|
Function
|
| clipMode |
int
|
1 | Toggles between foreground (0) and background resolution (1) |
| channels |
string |
Tells Shake what channels to copy from image B to image A. Possible channels are : |
Synopsis
image Copy( image Foreground, image Background, int clipMode, const char * channels );
Script
image = Copy( Foreground, Background, clipMode, "channels" );
shake -copy image clipMode channels
shake lisa.iff -copy parrot.jpg 0 rg
shake lisa.iff -pan 100 100 -copy lisa.iff 1 r
See Also
Reorder, SwitchMatte,
IAdd