Original address: http://blog.csdn.net/zidan_2011/article/details/21443147
Android--bitmap.config argb_8888
The Bitmap.config has several constants:
1234 |
public static final bitmap.config alpha_8public static final span class= "n" >bitmap.argb_4444 public static final bitmap.argb_8888public static final bitmap.rgb_565 |
These are the storage methods of color: We know that ARGB refers to a color pattern , where a for alpha,r means that red,g means green,b represents blue.
In fact, all the visible color is the right red and green blue, so red and green blue is also known as the three primary colors, each primary color is stored in the information value of the colors represented
Alpha_8 is Alpha made up of 8 bits.
Argb_4444 is made up of 4 4-bit or 16-bit
Argb_8888 is made up of 4 8-bit or 32-bit
Rgb_565 is R is 5 bits, G is 6 bits, B is 5 bits total 16 bits
Thus
- alpha_8--represents a 8-bit alpha bitmap
- argb_4444--represents a 16-bit ARGB bitmap
- argb_8888--represents a 32-bit ARGB bitmap
- rgb_565--represents a 8-bit RGB bitmap
A higher number of bitmap bits means that the more color information they can store, the more realistic the image is.
Android--bitmap.config argb_8888