| Scale |
Function
The Scale function scales the image with subpixel precision. To rotate and
scale an image, you probably want to use the two independent nodes, Rotate and Scale, rather than a Move2D node, because you can control the centers
independently. Unlike
the Resize node, Scale does not change the image resolution.
If you scale by a negative number on Y, you buffer the image. You can also use the Flip and Flop nodes 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....