php8.5
Home/ Manual/ gmagick / gmagick/ Gmagick::setimagecolorspace

Gmagick::setimagecolorspace

PHP function Edit on GitHub ✎

(PECL gmagick >= Unknown)

Sets the image colorspace

Description

Gmagick::setimagecolorspace(int $colorspace): Gmagick

Sets the image colorspace.

Parameters

colorspace

One of the Colorspace constant (Gmagick::COLORSPACE_*).

Return Values

The Gmagick object.

Errors/Exceptions

Throw

Source: reference/gmagick/gmagick/setimagecolorspace.xml · from the official PHP manual (php/doc-en)