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

search for in the

Imagick::flipImage> <Imagick::extentImage
Last updated: Fri, 20 May 2011

view this page in

Imagick::flattenImages

(PECL imagick 2.0.0)

Imagick::flattenImagesFusiona una secuencia de imágenes

Descripción

Imagick Imagick::flattenImages ( void )
Warning

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

Fusiona una secuencia de imágenes. Esto es útil para combinar capas de Photoshop en una sóla imagen.

Valores devueltos

Devuelve TRUE en caso de éxito.

Errores/Excepciones

Lanza ImagickException en caso de error.



add a note add a note User Contributed Notes Imagick::flattenImages
Jairu5 30-Nov-2010 04:29
Note that the function returns an Imagick object and does not modify the existing object. Below is my code for converting a PNG with transparency into a JPG with a background color. This code illustrates the difference.

<?php

$im
= new Imagick('image.png');
$im->setImageBackgroundColor('white');

$im->flattenImages(); // This does not do anything.
$im = $im->flattenImages(); // Use this instead.

$im->setImageFormat('jpg');
$im->writeImage('image.jpg');

?>

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