I know there are different types of png compression formats (using color palette for example). Is it possible to (programatically) determine the type I want to use when compressing a Bitmap in Android?
If the answer is no, can anyone suggest a method for doing so? Thanks
In Android there's no client API to specify that, because Bitmap.compress()
calls a native method which doesn't accept such a parameter.
However you can use libpng (which BTW is what I think Android uses in its native implementation) and it certainly allows the fine-grained control you need.
But I really don't think that saving a bunch of KBytes in a GB-sized drive is worth this effort.