array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'imagick.getimagechanneldepth.php', 1 => 'Imagick::getImageChannelDepth', 2 => 'Gets the depth for a particular image channel', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.getimagebordercolor.php', 1 => 'Imagick::getImageBorderColor', ), 'next' => array ( 0 => 'imagick.getimagechanneldistortion.php', 1 => 'Imagick::getImageChannelDistortion', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/getimagechanneldepth.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::getImageChannelDepth

(PECL imagick 2, PECL imagick 3)

Imagick::getImageChannelDepthGets the depth for a particular image channel

说明

public Imagick::getImageChannelDepth(int $channel): int

Gets the depth for a particular image channel.

参数

channel

Provide any channel constant that is valid for your channel mode. To apply to more than one channel, combine channel constants using bitwise operators. 缺省为Imagick::CHANNEL_DEFAULT. 参考此 通道常数列表

返回值

成功时返回 true