SetAlpha

Function
This is simply a macro for Set and Crop that sets the alpha to 1 by default. The reason it exists is that in the Infinite Workspace, color corrections extend past the frame of an image. By using the Crop in the macro, we cut off the Set, making the image ready for transformations.

By setting your alpha value to 0, you can also remove the alpha channel from the image, i.e., turn a RGBA image into a RGB image.

Parameters
Type
Defaults
Function
alpha
float
1
From 0 to 1, this is the alpha value of the output image. By default, it is 1.


Script

image SetAlpha( image, float alpha );


Script

image = SetAlpha( image, alpha );


Command Line

shake -setalpha alpha

See Also
Set, Crop