The Imagick class
PHP Manual

Imagick::setColorspace

(No version information available, might only be in SVN)

Imagick::setColorspaceSet colorspace

说明

bool Imagick::setColorspace ( int $COLORSPACE )

Sets the global colorspace value for the object. This method is available if Imagick has been compiled against ImageMagick version 6.5.7 or newer.

参数

COLORSPACE

One of the COLORSPACE constants

返回值

Returns TRUE on success.

错误/异常

Throws ImagickException on error.


The Imagick class
PHP Manual