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: Wed, 22 May 2013

view this page in

Imagick::getImageRegion

(PECL imagick 2.0.0)

Imagick::getImageRegionExtrae una región de la imagen

Descripción

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

Extrae una región de la imagen y la devuelve como un nuevo objeto Imagick.

Parámetros

width

El ancho de la región extraída.

height

El alto de la región extraída.

x

Coordenada X de la esquina superior izquierda de la región extraída.

y

Coordenada Y de la esquina superior izquierda de la región extraída.

Valores devueltos

Extrae una región de la imagen y la devuleve como una nueva varita mágica.

Errores/Excepciones

Lanza ImagickException en caso de error.



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 | sitemap | contact | advertising | mirror sites