Android--bitmap.config argb_8888

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.