Serializable, Comparable<Texture.ColorType>public static enum Texture.ColorType extends Enum<Texture.ColorType>
| 枚举常量 | 说明 |
|---|---|
ALPHA_8_COLORTYPE |
Indicates a color format with only 8-bit transparency.
|
ARGB_4444_COLORTYPE |
Indicates a color format where each pixel is represented by 16 bits (4 bits each for alpha, red, green, and
blue).
|
BGRA_8888_COLORTYPE |
Indicates a color format where each pixel is represented by 32 bits in BGRA order (8 bits each for blue,
green, red, and alpha).
|
RGB_565_COLORTYPE |
Indicates a color format where each pixel is represented by 16 bits (5 bits for red and blue each, and 6 bits
for green).
|
RGBA_8888_COLORTYPE |
Indicates a color format where each pixel is represented by 32 bits in RGBA order (8 bits each for red,
green, blue, and alpha).
|
RGBA_F32_COLORTYPE |
Indicates a color format where each pixel is represented by a 32-bit float number.
|
UNKNOWN_COLORTYPE |
Indicates the default value.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
value() |
Obtains the enumeration identifier of the pixel color format in this
Texture. |
static Texture.ColorType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static Texture.ColorType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (Texture.ColorType c : Texture.ColorType.values()) System.out.println(c); |
public static final Texture.ColorType UNKNOWN_COLORTYPE
public static final Texture.ColorType ALPHA_8_COLORTYPE
public static final Texture.ColorType RGB_565_COLORTYPE
public static final Texture.ColorType ARGB_4444_COLORTYPE
public static final Texture.ColorType RGBA_8888_COLORTYPE
public static final Texture.ColorType BGRA_8888_COLORTYPE
public static final Texture.ColorType RGBA_F32_COLORTYPE
public static Texture.ColorType[] values()
for (Texture.ColorType c : Texture.ColorType.values()) System.out.println(c);
public static Texture.ColorType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()
Texture.Texture.