Scale
Function
This function scales the image with sub-pixel precision. If you want to do a
Rotate and a Scale on
the image, you probably want to use the two independent nodes, rather than Move2D,
because you can control the centers independently. This function will not change
the image resolution, which is how it differs from Resize.
If you scale by a negative number on Y, you will be buffering the image. You can also use Flip and Flop to invert your image.
Parameters
|
Type
|
Defaults
|
Function
|
x,yScale |
float
|
1, 1 | The scaling factor. |
x,yCenter |
float
|
width/2, height/2 | The x and y scale center values. |
motionBlur |
float
|
0 | Motion Blur quality level. 0 means no blur, whereas 1 represents standard filtering. For more speed, use less than 1. This value gets multiplied by the Global Parameter motionBlur. |
shutterTiming |
float
|
.5 | Shutter length. 0 means no blur, whereas 1 represent a whole frame of blur. Note that standard camera blur is 180 degrees, or a value of .5. This value gets multiplied by the Global Parameter shutterTiming. |
shutterOffset |
float
|
0 | This is the offset from the current frame at which the blur is calculated. Default is 0, previous frames are less than 0. |
Synopsis
image Scale( image, float xScale, float yScale, float xCenter, float yCenter, float motionBlur, float shutterTiming, float shutterOffset, );
Script
image = Scale( image, xScale, yScale, xCenter, yCenter motionBlur, shutterTiming, shutterOffset, );
Command Line
shake -scale xScale yScale xCenter etc....