Java异常:新的BMP版本尚未实现
我在 GIMP 的帮助下将图像转换为 RGB565。 现在我想在java中读取这个bmp图像:
BufferedImage bufImg = ImageIO.read(imagePathFile);
但它抛出异常:
java.lang.RuntimeException: New BMP version not implemented yet
我应该做什么来读取这个图像?
I converted image with help of GIMP to RGB565.
Now I want to read this bmp-image in java:
BufferedImage bufImg = ImageIO.read(imagePathFile);
but it throws exception:
java.lang.RuntimeException: New BMP version not implemented yet
What should I do to read this image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试 JAI 或 Apache Sanselan。
请注意,JAI 需要将一些本机库插入 JVM,而 Sanselan 不会读取 JPEG 图像,因此需要您回退到 ImageIO 甚至
JPEGImageDecoder
来获取这些图像。You could try JAI or Apache Sanselan.
Note that JAI requires some native libraries to be plugged into the JVM whereas Sanselan won't read JPEG images and thus requires you to fall back to ImageIO or even
JPEGImageDecoder
for those.