From what I have read a canvas allocates memory when it is initialized that is equivalent to:
If I load a 1Mb PNG file into the canvas, does the canvas object use 9.8Mb or 1Mb of memory.
Thanks.
Canvas Width * Canvas Height * 4bytes - On a Nexus 7 this would be 1920 * 1280 * 4 = 9.8Mb
If I load a 1Mb PNG file into the canvas, does the canvas object use 9.8Mb or 1Mb of memory.
Thanks.