Scripting Function - Crop
The function crops each image. Cropping is specified by x, y, and width and height in pixels.
Syntax
Crop x As IntegerValueGreaterEqualZero, y As IntegerValueGreaterEqualZero, width As IntegerValueGreaterEqualOne, height As IntegerValueGreaterEqualOne
Parameters
x - the x coordinate in pixels where the top left area of the crop will start
y - the y coordinate in pixels where the top left area of the crop will start
width - the width in pixels of the area to crop
height - the height in pixels of the area to crop
Example
The following example crops images starting a 50 pixels in from the left and top edges with a cropping width of 100 pixels and cropping height of 150 pixels:
Crop 50, 50, 100, 150
Version Information
Supported in Multiple Image Resizer .NET v2.0.0.0
See Also