Storage size of Bitmap

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

你可能感兴趣的:(bitmap)