Is decreasing size of .png files have some effect to resulted Bitmap in memory

后端 未结 3 649
名媛妹妹
名媛妹妹 2021-01-19 21:57

I\'m writing game with a large amount of PNG pictures. All worked fine. Than I added new activity with WebView and got memory shortage. After that I made some e

3条回答
  •  不要未来只要你来
    2021-01-19 22:14

    Android or not, a bitmaps in memory aren't compressed, so they are going to take (bits per pixel) * width * height, with a bit of variation depending on the pixel format.

    I don't know the details of how PNGs are drawn, but probably what's happening is that simpler PNGs take less memory to decode.

提交回复
热议问题