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

Gmagick::setimagechanneldepth

PHP function Edit on GitHub ✎

(PECL gmagick >= Unknown)

Sets the depth of a particular image channel

Description

Gmagick::setimagechanneldepth(int $channel, int $depth): Gmagick

Sets the depth of a particular image channel.

Parameters

channel

One of the Channel constant (Gmagick::CHANNEL_*).

depth

The image depth in bits.

Return Values

The Gmagick object.

Errors/Exceptions

Throw

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