编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Imagick::setImageColormapColor
  • Imagick::setImageCompose »
  • PHP Manual
  • Imagick
  • Sets the image colorspace

Imagick::setImageColorspace

(PECL imagick 2.0.0)

Imagick::setImageColorspace — Sets the image colorspace

说明

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。

相关文章
php imagick gets the image colorspacephp imagick sets image alpha channelphp imagick sets the image background colorphp imagick sets the image bias for any method that convolves an imagephp imagick sets the image chromaticity blue primary pointphp imagick sets the image colorspacephp imagick sets the image depthphp imagick sets the image disposal methodphp imagick sets the image sizephp imagick sets the filename of a particular imagephp imagick sets the image gammaphp imagick sets the image gravityphp imagick sets the page geometry of the imagephp imagick sets an image propertyphp imagick sets the image chromaticity red primary pointphp imagick sets the image rendering intentphp imagick sets the image resolutionphp imagick sets the image scenephp imagick sets the image resolutionphp imagick transforms an image to a new colorspace
关注编程学问公众号
编程学问网 湘ICP备20001732号