PHP - Manual: Imagick::setImageChannelDepth
2024-11-13
(PECL imagick 2, PECL imagick 3)
Imagick::setImageChannelDepth — Sets the depth of a particular image channel
$channel
, int $depth
): boolSets the depth of a particular image channel.
channel
depth
成功时返回 true
。
错误时抛出 ImagickException。
官方地址:https://www.php.net/manual/en/imagick.setimagechanneldepth.php