Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Gmagick::setimagebordercolorGmagick::setimagecolorspace>
^GmagickLast updated: Mon, 26 Oct 2026

Gmagick::setimagechanneldepth

(PECL gmagick >= Unknown)

Gmagick::setimagechanneldepth — Sets the depth of a particular image channel

Description

public function 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.


<Gmagick::setimagebordercolorGmagick::setimagecolorspace>
^GmagickLast updated: Mon, 26 Oct 2026