getPixelRed

.getPixelRed( x, y )

Returns the red component of the pixel, located at the x/y location given, in this image. This is a value from 0 to 255.

Null is returned if the value is located outside of this Image.

See also

setPixel - getPixel - getPixelGreen - getPixelBlue - getPixelAlpha