Imagick::setImageColorspace

(PECL imagick 2, PECL imagick 3)

Imagick::setImageColorspaceSets the image colorspace

说明

public Imagick::setImageColorspace(int $colorspace): bool

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().

参数

colorspace

One of the COLORSPACE constants

返回值

成功时返回 true

错误/异常

错误时抛出 ImagickException。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top