Imagick::setImageColorspace

(PECL imagick 2.0.0)
Sets the image colorspace
bool Imagick::setImageColorspace ( int $colorspace )

Sets the image colorspace. This method should be used when creating new images. To change the colorspace of an existing image, you should use Imagick::transformImageColorspace().

Parameters:
colorspace

One of the COLORSPACE constants

Returns:

Returns TRUE on success.

Exception:

Throws ImagickException on error.

doc_php
2016-02-24 16:01:20
Comments
Leave a Comment

Please login to continue.