Skip to content

Commit 4998221

Browse files
committed
Update
1 parent 3247569 commit 4998221

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

CustomView/Base/[3]Color.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ ARGB4444 | 四通道低精度
1313
RGB565 | **屏幕默认模式**
1414
Alpha8 | 进有透明通道
1515

16-
*PS:其中字母表示通道类型,数值表示该类型用多少位二进制来描述。如ARGB8888则表示有四个通道(ARGB),每个对应的通道均用8位来描述*
16+
*PS:其中字母表示通道类型,数值表示该类型用多少位二进制来描述。如ARGB8888则表示有四个通道(ARGB),每个对应的通道均用8位来描述*
1717

18+
*注意:我们常用的是ARGB8888和ARGB4444,而在所有的安卓设备屏幕上默认的模式都是RGB565,请留意这一点。*
1819

19-
安卓中颜色是按照ARGB方式定义的。
20+
**以ARGB8888为例介绍颜色定义:**
2021

2122
类型 | 解释 | 0(0x00) | 255(0xff)
2223
:-------- |:------ | :------ | :--------
@@ -25,7 +26,7 @@ R(Red) | 红色 | 无色 | 红色
2526
G(Green) | 绿色 | 无色 | 绿色
2627
B(Blue) | 蓝色 | 无色 | 蓝色
2728

28-
**其中 A R G B 的取值范围均为0~255(即16进制的0x00~0xff)**
29+
*其中 A R G B 的取值范围均为0~255(即16进制的0x00~0xff)*
2930

3031
A 从ox00到oxff表示从透明到不透明。
3132

0 commit comments

Comments
 (0)