DrAlex Member Licensed User Longtime User Jun 25, 2016 #1 Hello, I would like to continue the discussion in https://www.b4x.com/android/forum/threads/how-to-handle-large-bitmaps.50183/ My app downloads images from a website and displays them. It does not know the size of the image in advance. With modern cameras, a 2,400 x 4,000 picture is nothing special, but it can be too big for an Android app. My questions: 1. How do you know what image size is reasonable for a given device? 2. How do I downsample my image to that size?
Hello, I would like to continue the discussion in https://www.b4x.com/android/forum/threads/how-to-handle-large-bitmaps.50183/ My app downloads images from a website and displays them. It does not know the size of the image in advance. With modern cameras, a 2,400 x 4,000 picture is nothing special, but it can be too big for an Android app. My questions: 1. How do you know what image size is reasonable for a given device? 2. How do I downsample my image to that size?
Erel B4X founder Staff member Licensed User Longtime User Jun 26, 2016 #2 Use LoadBitmapSample to load the images and set the width and height of the target view. Upvote 0