dr85
dr85

Reputation: 743

get colour of pixel in buffered image in the form of a color object

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..

Upvotes: 1

Views: 3382

Answers (1)

camickr
camickr

Reputation: 324118

Check out the Color API.

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

Upvotes: 5

Related Questions