Copy

Function
This function copies selected channels from Image B to Image A, replacing them entirely. You commonly copy the alpha channel over. To copy channels within the same image, use Reorder. SwitchMatte depends on Copy, but is a macro with MMult and Invert placed inside of it.

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 :
rgbaz


Synopsis

image Copy( 
  image Foreground, 
  image Background,
  int clipMode, 
  const char * channels
);


Script

 image = Copy( 
   Foreground, Background,
   clipMode, 
   "channels"
 );

Command Line

shake -copy image clipMode channels


Examples

shake lisa.iff -copy parrot.jpg 0 rg
shake lisa.iff -pan 100 100 -copy lisa.iff 1 r


See Also
Reorder, SwitchMatte, IAdd