Android handling out of memory exception on image processing

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 02:11:26

I think you have no choice, but to rescale the bitmaps in a lower size...

The only way I can think of to handle this would be to divide the images up into pieces so you don't have to keep everything in memory at once. If you don't want to keep bmp1 you can draw bmp2 directly on top of it rather then creating a new bitmap as well, though I'm not sure if this is what you're after.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!