Get the red, green, and blue color values
Once you have the pixel value:
(You can also call the geta function to get the alpha value.)
Color values all range from 0 to 255.
A color value of 0 indicates the total absence of that color component.
A color value of 255 indicates the maximum intensity of that color component.
Values in between indicate a proportional amount of the color component.