Resize

Function
The Resize function zooms the image to a given resolution.

Parameters
Type
Defaults
Function
x,ySize
float
width, height The new X and Y resolution
filter
string
"default" Jump to Filter Types
subPixel
int
0

Turns on quality control

0 = low quality
1 = high quality

If the new width or height is not an integer (either because it was set that way, or because of a proxy scale), you have a choice to snap to the closest integer (subpixel off ) or generate transparent pixels for the last row and columnm (subpixel on).


Synopsis

 image Resize( image,
  float xSize, 
  float ySize,
  const char * filter,
  int subPixel
 );


Script

image = Resize( 
  image, 
  xSize, 
  ySize, 
  "filter", 
  subPixel
);


Command Line

shake -resize xSize ySize filter subPixel


See Also
Crop, Window, ViewPort, Scale , Zoom