= 2.2.1, PECL imagick 3)Imagick::getImageChannelRange — Gets channel range說明public Imagick::getImageChan">

Imagick::getImageChannelRange

(PECL imagick 2 >= 2.2.1, PECL imagick 3)

Imagick::getImageChannelRangeGets channel range

說明

public Imagick::getImageChannelRange(int $channel): array

Gets the range for one or more image channels. 此方法在Imagick基于ImageMagick 6.4.0以上版本編譯時(shí)可用。

參數(shù)

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. 參考此 通道常數(shù)列表

返回值

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

錯(cuò)誤/異常

錯(cuò)誤時(shí)拋出 ImagickException。