开发者

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

开发者 https://www.devze.com 2023-02-07 19:56 出处:网络
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?

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

精彩评论

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