I have a 1000x1500 pixel bitmap from which I want to make a modified copy in Android.
When I run the following code ...
final Bitmap result = original.copy(original.getConfig(), true);
original.recycle();
... I get OutOfMemoryErrorin the line copy:
java.lang.OutOfMemoryError: bitmap size exceeds VM budget
ERROR/GraphicsJNI(419): VM won't let us allocate 6000000 bytes
Why do I need a 6 MB copy command (!) For a 1000x1500 bitmap?
How can I create a mutable bitmap from a non-moving one more efficiently in terms of memory?
Edit
BitmapFactory inmutable . -, - . 1000x1500 , -, 12 (1000x1500x4x2), OutOfMemoryError Android-.
Android?