Take a look at the TGA image format - it can be boiled down to an 18
byte header and then a simple dump of pixel data. I can't see any
other formats being much faster than that.

On Mar 2, 8:14 pm, spaceraiders <[email protected]> wrote:
> My app involves saving 480x854 8888ARGB images (1.6Mb of data) in
> lossless format. I've been using Bitmap.compress to do this in PNG
> format but have observed this method can take several seconds to
> finish.
>
> When used with typical photographs, this method takes between 2 and 5
> seconds to return on a Droid phone for me, compressing the data to
> about 0.4Mb. Is there a way to save images in a lossless format in
> less time than this?
>
> I was hoping to tweak the compression parameters for saving the PNG
> file but Bitmap.compress offers no options (it ignores the compression
> parameter). Based on the output file sizes, my suspicion is this
> method uses a high level of compression and, if this could be reduced,
> the images could be saved faster.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to