downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::getImageRenderingIntent> <Imagick::getImageRedPrimary
[edit] Last updated: Fri, 24 May 2013

view this page in

Imagick::getImageRegion

(PECL imagick 2.0.0)

Imagick::getImageRegionExtrait une région d'une image

Description

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

Extrait une région d'une image et la retourne sous la forme d'un nouvel objet Imagick.

Liste de paramètres

width

La largeur de la région extraite.

height

La hauteur de la région extraite.

x

L'abscisse du coin supérieur gauche de la région extraite.

y

L'ordonnée du coin supérieur gauche de la région extraite.

Valeurs de retour

Extrait une région d'une image et la retourne sous la forme d'un nouvel objet Imagick.

Erreurs / Exceptions

Lance une exception ImagickException si une erreur survient.



add a note add a note User Contributed Notes Imagick::getImageRegion - [1 notes]
up
0
zolcos at hotmail dot com
3 years ago
getImageRegion has the same side effect that was mentioned for operations that change the crop of the image -- the new image preserves the old canvas and positioning info. For example, using annotateImage on the new image will interpret the positioning arguments relative to the old image. To correct it, reset this info with setImagePage.

<?php
$im
->setImagePage(0, 0, 0, 0);
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites