开发者

Fast lossless image compression in Android?

I need to save a series of large bitmaps to disk in Android in a lossless format. However, I've found that the built-in PNG encoder is quite slow e.g. it's taking about 8 seconds to save 3 large images when I need something that takes around 2 seconds. Are there any other lossless options for saving bitmaps in Android?

I'm happy to sacrifice a little disk space for speed. How开发者_如何学编程ever, the compression level parameter for saving PNG images in Android is ignored for PNGs (by design). Perhaps there are some easy to use options that involve the NDK?


The slowness may depend on how (the approach) you are saving it..Did you try using AsyncTask?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜