2

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?

If 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?

Kara
  • 6,115
  • 16
  • 50
  • 57
Robert Foss
  • 2,497
  • 4
  • 19
  • 18

1 Answers1

3

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.

Community
  • 1
  • 1
Torid
  • 4,176
  • 1
  • 28
  • 29