Lucee Function Reference

Function IMAGECROP

Crops a image to a specified rectangular area.

Example

imagecrop(any image,number x,number y,number width,number height):void

Category

image

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
image any  Yes The image on which this operation is performed.  
x number  Yes The X origin of the crop area.  
y number  Yes The Y origin of the crop area.  
width number  Yes The width of the crop area.  
height number  Yes The height of the crop area.