Cableguy Expert Licensed User Longtime User Jan 26, 2016 #1 Hi guys, How can I load a BIG image and still avoid the OutOfMemory exception? What I aim to do is to show a HiRes image, zoom fitted to the screen, and with user double tap, zoom in in the zone tapped. Any ideas?
Hi guys, How can I load a BIG image and still avoid the OutOfMemory exception? What I aim to do is to show a HiRes image, zoom fitted to the screen, and with user double tap, zoom in in the zone tapped. Any ideas?
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2016 #2 If the image is too large then it will not be possible to load it completely. Check Jpeg library. It allows you to load parts of the image. You can combine it with LoadBitmapSample to load smaller images. Upvote 0
If the image is too large then it will not be possible to load it completely. Check Jpeg library. It allows you to load parts of the image. You can combine it with LoadBitmapSample to load smaller images.
Cableguy Expert Licensed User Longtime User Jan 26, 2016 #3 So I could then just load a sampled zoomed out image, and after load the tapped part of the image zoomed in, right? Upvote 0
So I could then just load a sampled zoomed out image, and after load the tapped part of the image zoomed in, right?
wonder Expert Licensed User Longtime User Jan 26, 2016 #4 This might help: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html Upvote 0