ImagickPixel::getColorValue — Gets the normalized value of the provided color channel Retrieves the value of the color channel specified, as a floating-point number between 0 and 1. The color to get the value of, specified as one of the Imagick color constants.
Retrieves the value of the color channel specified, as a floating-point number between 0 and 1. The color to get the value of, specified as one of the Imagick color constants. This can be one of the RGB colors, CMYK colors, alpha and opacity e.g (Imagick::COLOR_BLUE, Imagick::COLOR_MAGENTA).
The color to get the value of, specified as one of the Imagick color constants. This can be one of the RGB colors, CMYK colors, alpha and opacity e.g (Imagick::COLOR_BLUE, Imagick::COLOR_MAGENTA). The value of the channel, as a normalized floating-point number, throwing ImagickPixelException on error.