开发者

Displaying a bitmap of arbitrary size without running out of memory

How do I display an image of arbitrary size without OOMing or downscaling the image. I dont want to downscale due to zooming and dragging of the picture?

I开发者_如何学Pythonf it isnt possible to display an image of arbitrary size, how do I determine the maximum possible size of the image to display, without causing a OOM?


Bitmap data is aloccated in the Native heap rather than the VM heap. see BitmapFactory OOM driving me nuts for details on how to monitor the Native heap and how big your bitmap can get without hitting an OOM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜