Argb-alpha,red,green,blue

Source: Internet
Author: User
Tags transparent color

Argb-alpha,red,green,blue
A color mode, which is the RGB color mode, attaches an alpha (transparency) channel, which is common in 32-bit bitmap storage structures.
Alpha, image channel, full strength ff, means no transparency, i.e. opaque, no strength of 00, indicates full transparency. Therefore, the transparent pixel color value is the alpha bit -00,red bit, green bit, blue bit is any value, for example: 0X00FFFFFF is transparent color, namely transparent.
If the graphics card has a 32-bit bus, the additional 8-bit signal is used to hold the invisible transparency signal for easy processing, which is the alpha channel. White alpha pixels are used to define opaque color pixels, while black alpha pixels are used to define transparent pixels, and gray levels between black and white define translucent pixels.

Color synthesis:
Set Alpha,red,green,blue are the number of 0~255 between
Color32 = Alpha << 24 | Red << 16 | Green << 8 | Blue

Color extraction:
Alpha = Color32 >> 24;
Red = Color32 >> & 0xFF;
Green = Color32 >> 8 & 0xFF;
Blue = Color32 & 0xFF;

Argb-alpha,red,green,blue

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.