Imagick
PHP 手册

Imagick::getImageChannelRange

(PECL imagick 2.2.1)

Imagick::getImageChannelRangeGets channel range

说明

array Imagick::getImageChannelRange ( int $channel )

Gets the range for one or more image channels. 此方法在Imagick基于ImageMagick 6.4.0以上版本编译时可用。

参数

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. 参考此 通道常数列表

返回值

Returns an array containing minima and maxima values of the channel(s).

错误/异常

错误时抛出 ImagickException。


Imagick
PHP 手册