BlackBerry 上是否有一些用于“平滑”操作的 API?图像大小调整?

发布于 2024-09-01 16:18:22 字数 200 浏览 3 评论 0原文

为了在 BlackBerry 上获取图像缩略图,我使用 EncodedImage.scaleImage32()。它工作正常,但是当我打开本机图像查看器(从相机应用程序)时,我看到质量的差异 - 本机查看器缩略图看起来不错(平滑,抗锯齿),而我的有点难看。看起来本机查看器使用某些过滤器(双三次或类似的过滤器)调整图像大小。我怎样才能做同样的事情?是否有一些用于“平滑”调整大小的API?

To get image thumbnails on BlackBerry I use EncodedImage.scaleImage32(). It works Ok, but when I open native image viewer (from the Camera app) I see the difference in quality - native viewer thumbnails look nice (smooth, anti-aliased), while mine are a bit ugly. Looks like native viewer resizes images using some filter (bicubic or smth like that). How can I do the same? Is there some API for "smooth" resizing?

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

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

发布评论

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

评论(1

审判长 2024-09-08 16:18:22

从5.0开始,Bitmap类有一个名为scaleInto()的方法,它可以使用过滤器来执行图像的平滑缩放。质量比没有过滤器的缩放要好得多。请参阅 Bitmap.scaleInto() 了解更多信息。

Starting in 5.0, the Bitmap class has a method called scaleInto() which can use a filter to perform smooth scaling of an image. The quality is MUCH better than scaling without a filter. See Bitmap.scaleInto() for more information.

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