AddBorders

Function
This function is similar to a Crop, except it adds an equal amount of space to both left and right or top and bottom sides. It is in Other because it is kind of a goof function.

Parameters
Type
Defaults
Function
xBorder
int
0 The amount of added pixels to the left and right border.
yBorder
int
0 The amount of added pixels to the bottom and top border.


Synopsis

image AddBorders( image, int xBorder, int yBorder);


Script

image = AddBorders( image, xBorder, yBorder);


Command Line

shake -addborders xBorder yBorder


Examples

shake lisa.iff -addborders 50 50 
shake lisa.iff -addbor 50 50 -savescript example.shk

See Also
Crop, Window, ViewPort