4

标题确实总结了它。使用独立的 exiftool 程序将所有图像元数据转储到控制台我可以看到一行颜色空间数据:RGB 看起来这是取自 ICC-header

我想在java中以编程方式获取相同的数据。我已经尝试过绘制的 noakes 库和 Sanselan 库,但都没有给我任何字段的 RGB 值。

4

1 回答 1

7

You have a BufferedImage, right? If so, you probably want either getType() or getColorModel()(then .getColorSpace() or .toString()). You can test getType() against the various types defined in BufferedImage.

于 2008-11-13T14:54:55.383 回答