Home > PHP > Function > > Imagick::cropImage()

Imagick::cropImage()

Imagick::cropImage - Extracts a region of the image

Syntax

bool Imagick::cropImage (int $width, int $height, int $x, int $y)

Arguments

  • width - The width of the crop
  • height - The height of the crop
  • x - The X coordinate of the cropped region\'s top left corner
  • y - The Y coordinate of the cropped region\'s top left corner

Description

Extracts a region of the image.

Version

PHP PECL imagick 2.0.0

Return value

Returns TRUE on success.