JAI 文件加载/文件存储操作与 JAI 图像读取/图像写入操作。差异?

发布于 2024-09-19 11:27:50 字数 100 浏览 0 评论 0原文

JAI 的 FileLoad/FileStore 操作和 ImageRead/ImageWrite 操作有什么区别?

一组在任何方面都比另一组更好吗?哪些应该用作默认值?

What are the differences between JAI's FileLoad/FileStore operations and its ImageRead/ImageWrite operations?

Is one set better than the other in any way? Which ones should be used as a default?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空城缀染半城烟沙 2024-09-26 11:27:50

FileLoad 是 JAI 图像 I/O 中用于“加载”图像,而 ImageRead 是 JAI 中用于“读取”图像的操作,使用 Java 图像 I/O 框架。

第一个需要 JAI 加上提供更多编解码器的图像 I/O,例如 JPEG 12 位。

第二个只需要 JAI,因为使用的编解码器是 Java 平台提供的。

对于大多数情况,第二个很简单,并且支持许多流行格式(JPEG、GIF、PNG...),您还可以在具有 100% 纯 Java 实现(软件)的小程序中使用本机加速。

有很多选择,但我推荐第二个。

FileLoad is the operation used in JAI Image I/O to "load" images, while ImageRead is the operation used in JAI to "read" images, using Java Image I/O Framework.

The first one requires JAI plus the Image I/O that provides more codecs, like JPEG 12bit.

The seconds one requires JAI only, as the codecs used are the provided with Java platorm.

For most cases, the second one is simple and supports for many popular formats (JPEG, GIF, PNG...), you can use also in applets with 100% pure Java implementation (software) of take advantage of native acceleration.

There are plenty of options, but I recommend the second one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文