|
ImagickPixel::getColorValueGets the normalized value of the provided color channel Description
float ImagickPixel::getColorValue
( int
$color
)Retrieves the value of the color channel specified, as a floating-point number between 0 and 1. Parameters
Return ValuesThe value of the channel, as a normalized floating-point number, throwing ImagickPixelException on error. Examples
Example #1 Basic Imagick::getColorValue usage
<?php The above example will output: Alpha value is 0.74999618524453 Red value is 0.90000762951095 Green value is 0.2 Blue value is 0.2 Cyan value is 0.90000762951095 Magenta value is 0.2 Yellow value is 0.2 Black value is 0 |