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

Imagick::getPixelRegionIterator()

Imagick::getPixelRegionIterator - Get an ImagickPixelIterator for an image section

Syntax

ImagickPixelIterator Imagick::getPixelRegionIterator (int $x, int $y, int $columns, int $rows)

Arguments

  • x - The x-coordinate of the region.
  • y - The y-coordinate of the region.
  • columns - The width of the region.
  • rows - The height of the region.

Description

Get an ImagickPixelIterator for an image section.

Version

PHP PECL imagick 2.0.0

Return value

Returns an ImagickPixelIterator for an image section. Throw an ImagickExceptionon error.