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

search for in the

Imagick::setImageUnits> <Imagick::setImageTicksPerSecond
[edit] Last updated: Fri, 23 Mar 2012

view this page in

Imagick::setImageType

(PECL imagick 2.0.0)

Imagick::setImageTypeSets the image type

Opis

bool Imagick::setImageType ( int $image_type )

Sets the image type.

Parametry

image_type

Zwracane wartoĊ›ci

Zwraca TRUE w przypadku sukcesu.



add a note add a note User Contributed Notes Imagick::setImageType
lee dot traynor at skeptic dot de 19-Oct-2011 01:37
This function can be used to desaturate an image, i.e. to convert a coloured image into a greyscale:

<?php

$im
= new Imagick ("image.jpg");
$im->setImageType (2);
//is now in 256 shades of grey

?>

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