1

I have a buffered image, I want to get the colour of pixels at a specific coord. Is there a function that returns this in the form of a color object as opposed to RGB values?

This is in Java by the way..

finnw
  • 47,861
  • 24
  • 143
  • 221
dr85
  • 733
  • 3
  • 13
  • 19
  • Related: http://stackoverflow.com/questions/2615522/java-bufferedimage-getting-red-green-and-blue-individually – finnw Feb 02 '11 at 04:09

1 Answers1

5

Check out the Color API.

You can create a Color object using the rgb value returned from the buffered image getRGB(...) method.

camickr
  • 321,443
  • 19
  • 166
  • 288