I’m making a game for Android and I’m using transparent PNG’s. But does the transparent part take up large memory?
For example if I have a PNG that is 512*512 that is transparent, does that take up the same amount of RAM and or ROM as one with 256*246??
//Simon
The size depends entirely on the pictures resolution when beeing uncompressed in memory.
If you have pixel with transparency (an alpha-channel), you are most likely using
ARGB8888as the image format. With this each pixel takes 4 bytes in memory. Which means the 512×512 pixel image takes(512*512*4) bytes = 1 MBand the smaller on(256*246*4) bytes = 246 kB.If the pixels are transparent (invisible) or not doesn’t matter. Only resolution and internal format are relevant.