1.get Width and Height .

2.Storage format:Config

  Giving a Bitmap file of 1200*800,stored in RGB_565 format.Then one pixel consume 16 bits,1byte=8bit,so:

  size=1200*800*16/8=192000byte=1.831M

 

  if the format is RGBA_8888,then one pixel consume 32 bits:

  size=1200*800*32/8=192000byte=3.662M

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2021-07-11
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
相关资源
相似解决方案