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

search for in the

Imagick::getImageRenderingIntent> <Imagick::getImageRedPrimary
Last updated: Fri, 20 May 2011

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 )
Warning

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.

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. Lanza ImagickException en caso de error.

Errores/Excepciones

Lanza ImagickException en caso de error.



add a note add a note User Contributed Notes Imagick::getImageRegion
zolcos at hotmail dot com 22-Jul-2009 09:45
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