I've been meaning to ask this for quite awhile now. I am creating this game where I draw a very large background. But the problem is (of course), when I put more elements to the game, I get an OutOfMemory Exception.
What I've been meaning to ask is, will compressing the image reduce heap size allocation? For example, my PNG background (3000 by 2000 in pixels) is around 1.5 MB. After a series of PNG compressions (Through softwares such as TinyPNG and PNGGauntlet), the size of the background was drastically reduced to 712 KB. The compressed image here is still the same size as the original (3000 by 2000).
Will the heap size allocation for the original background size (1.5 MB) be the same as the compressed (712 KB) one?