php / 8.1.5 / gmagick.setimagechanneldepth.html /

Gmagick::setimagechanneldepth

(PECL gmagick >= Unknown)

Gmagick::setimagechanneldepthSets the depth of a particular image channel

Description

public 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

Throws an GmagickException on error.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/gmagick.setimagechanneldepth.php