array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'gmagick.setimagechanneldepth.php', 1 => 'Gmagick::setimagechanneldepth', 2 => 'Sets the depth of a particular image channel', ), 'up' => array ( 0 => 'class.gmagick.php', 1 => 'Gmagick', ), 'prev' => array ( 0 => 'gmagick.setimagebordercolor.php', 1 => 'Gmagick::setimagebordercolor', ), 'next' => array ( 0 => 'gmagick.setimagecolorspace.php', 1 => 'Gmagick::setimagecolorspace', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmagick/gmagick/setimagechanneldepth.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Gmagick::setimagechanneldepth

(PECL gmagick >= Unknown)

Gmagick::setimagechanneldepthSets the depth of a particular image channel

说明

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

Sets the depth of a particular image channel.

参数

channel

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

depth

The image depth in bits.

返回值

The Gmagick object.

错误/异常

错误时抛出 GmagickException