Crop

Syntax

Document.Crop (XOffset, YOffset, Width, Height )

Parameters

Short XOffset - horizontal coordinate of left edge of the cropping rectangle (zero represents the existing left edge of the image)

Short YOffset - vertical coordinate of top edge of the cropping rectangle (zero represents the existing top edge of the image)

Short Width - width of the cropping rectangle, i.e., the resulting image

Short Height - height of the cropping rectangle, i.e., the resulting image

Returns

Nothing

Remarks

Reduces the size of an image by discarding the area outside the cropping rectangle. All parameters are expressed in pixels. The sum of XOffset and Width may not exceed the width of the image, and the sum of YOffset and Height may not exceed its height.

This method is equivalent to the Crop command.