Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Embedded Resource Image Size

$
0
0

Hi,
I have a Forms app with 24 images. The images loaded fine via code and worked fine.
I increased the image size and now it runs out of memory on android but is fine on iOS.

I know what you are going to say but the total memory required for all the images (file size on disc) went from <1MB to ~12MB.
These are .png files.
Does android convert compressed images to uncompressed bitmaps when loaded ? so a compressed .png will require the full amount of ram when loaded!

The total size uncompressed for the large images would be ~51MB 1160x460 32bpp.
The original were 133.4KB 290x115 32bpp.

I have tried monitoring the app and as far as I can see it is not using all the memory of the tablet, is there a setting for heap size ?

I am using Xamarin with VS2013

The reason for increasing the size was to cater for larger screen sizes, scaling down is better than scaling up.

I can and will reduce the bpp to see if that helps.

Cheers,
Wayne


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>