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

posted @ 2012-04-25 18:46  Qiengo  阅读(249)  评论(0编辑  收藏  举报