开发者

Is there some API on BlackBerry for "smooth" image resizing?

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 sam开发者_Python百科e? Is there some API for "smooth" resizing?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜