Serializable, Comparable<AlphaType>public enum AlphaType extends Enum<AlphaType>
SystemCapability.Multimedia#IMAGE| 枚举常量 | 说明 |
|---|---|
OPAQUE |
Indicates that the image format does not include the alpha channel, or the alpha type of all pixels is opaque.
|
PREMUL |
Indicates that the color channel of each pixel is premultiplied by the alpha channel value.
|
UNKNOWN |
Indicates an unknown alpha type.
|
UNPREMUL |
Indicates that the color component of each pixel is independent from the alpha channel and is not
premultiplied by the value.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getValue() |
Obtains the enum value of the alpha type.
|
static AlphaType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static AlphaType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (AlphaType c : AlphaType.values()) System.out.println(c); |
public static final AlphaType UNKNOWN
public static final AlphaType OPAQUE
public static final AlphaType PREMUL
public static final AlphaType UNPREMUL
public static AlphaType[] values()
for (AlphaType c : AlphaType.values()) System.out.println(c);
public static AlphaType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()