Error getting tags :
error 404Error getting tags :
error 404 crop | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
crop
Basics
Expander triangle
Type
Command
Syntax
crop image to left,top,right,bottom
Introduced
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Trims an image.
Examples

crop image "photo" to 100,100,200,200
crop image myImage to the rect of graphic "Overlay"

Additional Comments
Expander triangle

Use the crop command to remove parts of an image, or to extend the image's edges.

Parameters:

The image is any image reference.

The left, top, right, and bottom describe the new rectangle of the image.

Comments:

The crop command changes the image's rectangle property to the new rectangle. Unlike changing the rectangle directly, the crop command removes image data outside the new rectangle, instead of scaling the image to fit.

If the crop rectangle is smaller than the image's original rectangle, the parts of the image outside the crop rectangle are removed. This is a permanent operation; the cropped portions do not reappear if you use the crop command to change the image's rectangle back to the original size.

If the crop rectangle is larger than the image's original rectangle, blank pixels are added to one or more edges of the image.

Important! The cropcommand cannot be used on a referenced image. Doing so will cause an execution error.

User Comments
Expander triangle
User thumbnail
Devin Asay
StarStarStarStarStar
Apr 9, 2009
You can also crop images in the IDE by holding down the control (Windows) or command (Mac) key while resizing the image. The crop becomes permanent when you release the mouse button after dragging the resize gadget.