Reputation: 2625
Am using BitmapFactory.options inMutable variable. But this seems to be supported only from API level 11. What do I do for those users using the previous API Levels?
Upvotes: 0
Views: 184
Reputation: 24460
On API's below 11 you will need to copy the Bitmap
with the mutable
argument set to true:
Bitmap bitmap = BitmapFactory.decodeResource(Resource, R.drawable.myDrawable);
Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, true);
You will probably want to fiddle a bit around with the arguments.
Upvotes: 1