Bitmap.Config的几个参数

Bitmap.Config ALPHA_8  
Bitmap.Config ARGB_4444  
Bitmap.Config ARGB_8888  
Bitmap.Config RGB_565 

  A  R  G  B
透明度 红色 绿色 蓝色

Bitmap.Config ARGB_4444 16 每个像素 占四位  
Bitmap.Config ARGB_8888 32 每个像素 占八位 
Bitmap.Config RGB_565 16 R占5位 G占6位 B占5位 没有透明度(A)

一般情况下我们都是用argb888 但是无可厚非 它也相对的很占内存
因为一个像素32位 8位一个字节 如果是800*480的图片的话自己算 估计有1M多了

猜你喜欢

转载自ahua186186.iteye.com/blog/1740745