Gmagick::setimagechanneldepth
Gmagick::setimagecompose
Gmagick
PHP Manual

# Gmagick::setimagecolorspace

Sets the image colorspace

### Description

public Gmagick Gmagick::setimagecolorspace ( int `$colorspace` )

Sets the image colorspace.

### Parameters

`colorspace`

  The image colorspace: UndefinedColorspace, RGBColorspace, GRAYColorspace, TransparentColorspace, OHTAColorspace, XYZColorspace, YCbCrColorspace, YCCColorspace, YIQColorspace, YPbPrColorspace, YPbPrColorspace, YUVColorspace, CMYKColorspace, sRGBColorspace, HSLColorspace, or HWBColorspace.

### Return Values

The Gmagick object on success

### Errors/Exceptions

Throws an GmagickException on error.