开发者

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 a开发者_如何学JAVAt 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..


Check out the Color API.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜