Android中的Bmp图形格式(ALPHA_8,ARGB_4444,ARGB_8888,RGB_565)
android.graphics.Bitmap.Config是一个枚举类型,里面定义了位图的四种格式.起初有点奇怪,网上查了一下,大概指定了类型名字怪怪的缘由.
ARGB_4444 vs RGB_565:
They take the same amount of memory. (See those numbers? They tell you the number of bits for each component (A, R, G, B). Add them up to get the total bits per pixel.)
If you don't need the transparency, though, of those two i'd recommend RGB_565 as it gives you more distinct colors. ARGB_4444 sacrifices some of its color depth in order to provide transparency.