The difference is: ARGB is a color mode, which is an RGB color mode plus an Alpha channel. RGB color mode is a color standard in the industry. It obtains a variety of colors by changing the three color channels of red (R), green (G), and blue (B) and superimposing them on each other. .
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
RGB is more common, and monitors, TVs, etc. all use the RGB color standard. RGB is a color standard in the industry. Various colors are obtained through changes in the three color channels of R (red), G (green), and B (blue) and their superposition. We know that computers are a world of 0s and 1s. Each RGB color is represented by a number. The maximum is 255 including 0, so there are 256 levels in total. Therefore, the color combination of RGB is 256*256*256, a total of 16777216, generally referred to as tens of millions of colors or 16 million, also called 24-bit color, and 2 to the 24th power. In code programming, it is often expressed in hexadecimal format, such as: 0xff0000 (red).
On the surface, ARGB has one more A than RGB. It is also a color mode that adds an Alpha (transparency) channel on the basis of RGB. Transparency is also represented by 0 to 255, so there are a total of 256 levels, transparent is 0, and opaque is 255. In code programming, it is also expressed in hexadecimal, such as: 0xffff0000.
Extended information:
Specific corresponding percentage of transparency:
100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
75% — BF
70% — B3
65% — A6
60% — 99
55% — 8C
50% — 80
45% — 73
40% — 66
35% — 59
30% — 4D
25% — 40
20% — 33
15% — 26
10% — 1A
5% — 0D
0% — 00
RGB color comparison table
For more computer-related knowledge, please visit the FAQ column!
The above is the detailed content of What is the difference between argb and rgb. For more information, please follow other related articles on the PHP Chinese website!