| Reorder |
Function
The Reorder function lets you shuffle channels. The argument
to this command specifies the new order. A channel can be copied to several
different channels. The letter “l” refers
to the luminance pseudo-channel which can be substituted in place of the RGBA.
If an expression is on a channel that does not exist, Shake creates the channel.
You can use the Z channel as well. For example:
shake -reorder zzzz
would place the z channel into the rgba channels for viewing.
To copy a channel from another image, use Copy.
|
Parameters
|
Type
|
Defaults
|
Function
|
||||||||||||||||||
| channels |
string
|
"rgba"
|
This indicates the new channel assignment. You can use any of
|
Synopsis
image Reorder( image, const char * channels );
Script
image = Reorder( image, "channels");
Command Line
shake -reorder channels
Examples:
To copy the luminance into the matte channel:
-reorder rgbl
To copy the red channel to all 3 color channels, leaving the alpha:
-reorder rrra
To remove the alpha channel:
-reorder rgbn