Function: crop

Function: crop


 crop(input: image, height: height_of_new_image, width: width_of_new_image, offset_x: x_position_to_start_crop, offset_y: y_position_to_start_crop)

Shrink an image by cutting off some of the image, starting at the position denoted by the offsets. The resulting image size is specified in the parameters.


Parameter Type Description
input image Image to enlarge
height real number Height of the resulting image
width real number Width of the resulting image
offset_x real number Offset of crop, horizontally
offset_y real number Offset of crop, vertically