Java中如何获取像素点的颜色?

ysonic 2006-01-06 12:26:00
获得黑白图像某点灰度值,获得彩塑图像某点的r,g,b分量。
BufferedIma的getRGB(x,y)的返回值是什么意思?
请大家帮帮我
,谢谢。
...全文
364 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
pdvv 2006-01-06
  • 打赏
  • 举报
回复
the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7.

return = r * 255 * 255 + g * 255 + b

62,629

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧