ImagickPixel::setColorValue
(No version information available, might be only in CVS)
ImagickPixel::setColorValue — Sets the normalized value of one of the channels
說明
bool ImagickPixel::setColorValue
( int $color
, float $value
)
Warning
此函式目前沒有參考文件;只有引數列表。
Warning
本函式是實驗性的。這個函式的行為、名稱、和關於此函式的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此函式需自行承擔風險。
Sets the value of the specified channel of this object to the provided value, which should be between 0 and 1. This function can be used to provide an opacity channel to an ImagickPixel object.
參數
- color
-
One of the Imagick channel color constants.
- value
-
The value to set this channel to, ranging from 0 to 1.
Return值
Returns TRUE on success.