array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'imagick.getimageregion.php', 1 => 'Imagick::getImageRegion', 2 => 'Extracts a region of the image', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.getimageredprimary.php', 1 => 'Imagick::getImageRedPrimary', ), 'next' => array ( 0 => 'imagick.getimagerenderingintent.php', 1 => 'Imagick::getImageRenderingIntent', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/getimageregion.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::getImageRegion

(PECL imagick 2, PECL imagick 3)

Imagick::getImageRegionExtracts a region of the image

Beschreibung

public Imagick::getImageRegion(
    int $width,
    int $height,
    int $x,
    int $y
): Imagick

Extracts a region of the image and returns it as a new Imagick object.

Parameter-Liste

width

The width of the extracted region.

height

The height of the extracted region.

x

X-coordinate of the top-left corner of the extracted region.

y

Y-coordinate of the top-left corner of the extracted region.

Rückgabewerte

Extracts a region of the image and returns it as a new wand.

Fehler/Exceptions

Wirft ImagickException bei Fehlern.