|
ImagickPixel::getColorValueGets the normalized value of the provided color channel Beschreibung
float ImagickPixel::getColorValue
( int
$color
)Retrieves the value of the color channel specified, as a floating-point number between 0 and 1. Parameter-Liste
RückgabewerteThe value of the channel, as a normalized floating-point number, throwing ImagickPixelException on error. Beispiele
Beispiel #1 Basic Imagick::getColorValue usage
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 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 |