function image_crop in Drupal 5
Same name and namespace in other branches
- 4 includes/image.inc \image_crop()
- 6 includes/image.inc \image_crop()
- 7 includes/image.inc \image_crop()
Crop an image to the rectangle specified by the given rectangle.
Parameters
$source The filepath of the source image:
$destination The file path of the destination image:
$x The top left co-ordinate of the crop area (x axis value):
$y The top left co-ordinate of the crop area (y axis value):
$width The target width:
$height The target height:
File
- includes/
image.inc, line 169
Code
function image_crop($source, $destination, $x, $y, $width, $height) {
return image_toolkit_invoke('crop', array(
$source,
$destination,
$x,
$y,
$width,
$height,
));
}