用java编写Jpeg 2000图像
我正在尝试用 Java 编码(写入)jpeg 2000。我正在读取“.bmp”图像并尝试写入“.jp2”图像。我正在使用:
javax.imageio.ImageIO.write(img1, "jpeg 2000", file1);
我没有收到任何错误,但生成的图像的大小为零。有人可以帮我吗?
预先非常感谢。
I am trying to encode (write) jpeg 2000 in Java. I am reading a '.bmp' image and try to write '.jp2' image. I am using:
javax.imageio.ImageIO.write(img1, "jpeg 2000", file1);
I do not receive any error, but the size of the produced image is zero. Can anybody help me please?
Thanks a lot in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
唯一的问题是,当我安装 JAI_ImageIO 时,我应该选择“自定义安装”并检查要安装的所有内容。谢谢大家。
The only problem was that when I was installing JAI_ImageIO, I should have selected "custome installation" and checked everything to be installed. Thanks everyone.