Forum und email

ImagickPixel::getColorValue

(No version information available, might be only in CVS)

ImagickPixel::getColorValue — Gets the normalized value of the provided color channel

說明

float ImagickPixel::getColorValue ( int $color )
Warning

此函式目前沒有參考文件;只有引數列表。

Warning

本函式是實驗性的。這個函式的行為、名稱、和關於此函式的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此函式需自行承擔風險。

Retrieves the value of the color channel specified, as a floating-point number between 0 and 1.

參數

color

The channel to check, specified as one of the Imagick channel constants.

Return值

The value of the channel, as a normalized floating-point number, throwing ImagickPixelException on error.