OutofMemoryError when creatingBitmp

ぃ、小莉子 提交于 2019-12-11 08:18:47

问题


When Creating bitmap for canvas in onSizeChanged() I am getting OutOfMemoryError

I am creating Bitmap like this

Bitmap b = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);

I am getting OutOfMemoryError exception when zooming canvas.

How I can handle this exception?

来源:https://stackoverflow.com/questions/24303759/outofmemoryerror-when-creatingbitmp

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