I'd like to know how to determine the RGB value of a selected pixel of a loaded image (similar to the eyedropper tool in Photoshop). Given the x and y coordinates from the mouse cursor, I need the RGB value being displayed.
The RGB value returned can be in one Hex #value or in separate red, green, and blue variables.
Take a look at the BufferedImage class in the J2EE documentation. The getRGB(int x, int y) method may be what your looking for. The Raster class may also be helpful.
Bookmarks