枚举类 NativeImage.Format
- 所有已实现的接口:
Serializable
,Comparable<NativeImage.Format>
,Constable
- 封闭类:
NativeImage
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量 -
字段概要
字段修饰符和类型字段说明private final int
private final int
(专用程序包) final int
private final int
private final int
private final boolean
private final boolean
private final boolean
private final boolean
private final boolean
private final int
private final int
private final boolean
-
构造器概要
构造器限定符构造器说明private
Format
(int p_85148_, int p_85149_, boolean p_85150_, boolean p_85151_, boolean p_85152_, boolean p_85153_, boolean p_85154_, int p_85155_, int p_85156_, int p_85157_, int p_85158_, int p_85159_, boolean p_85160_) -
方法概要
修饰符和类型方法说明int
int
int
(专用程序包) static NativeImage.Format
getStbFormat
(int p_85168_) int
glFormat()
int
boolean
hasAlpha()
boolean
hasBlue()
boolean
hasGreen()
boolean
boolean
boolean
boolean
boolean
boolean
hasRed()
int
int
int
int
int
int
void
void
boolean
static NativeImage.Format
返回带有指定名称的该类的枚举常量。static NativeImage.Format[]
values()
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同
-
枚举常量详细资料
-
RGBA
-
RGB
-
LUMINANCE_ALPHA
-
LUMINANCE
-
-
字段详细资料
-
components
final int components -
glFormat
private final int glFormat -
hasRed
private final boolean hasRed -
hasGreen
private final boolean hasGreen -
hasBlue
private final boolean hasBlue -
hasLuminance
private final boolean hasLuminance -
hasAlpha
private final boolean hasAlpha -
redOffset
private final int redOffset -
greenOffset
private final int greenOffset -
blueOffset
private final int blueOffset -
luminanceOffset
private final int luminanceOffset -
alphaOffset
private final int alphaOffset -
supportedByStb
private final boolean supportedByStb
-
-
构造器详细资料
-
Format
private Format(int p_85148_, int p_85149_, boolean p_85150_, boolean p_85151_, boolean p_85152_, boolean p_85153_, boolean p_85154_, int p_85155_, int p_85156_, int p_85157_, int p_85158_, int p_85159_, boolean p_85160_)
-
-
方法详细资料
-
values
返回包含该枚举类的常量的数组, 顺序与声明这些常量的顺序相同- 返回:
- 包含该枚举类的常量的数组,顺序与声明这些常量的顺序相同
-
valueOf
返回带有指定名称的该类的枚举常量。 字符串必须与用于声明该类的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类没有带有指定名称的常量NullPointerException
- 如果参数为空值
-
components
public int components() -
setPackPixelStoreState
public void setPackPixelStoreState() -
setUnpackPixelStoreState
public void setUnpackPixelStoreState() -
glFormat
public int glFormat() -
hasRed
public boolean hasRed() -
hasGreen
public boolean hasGreen() -
hasBlue
public boolean hasBlue() -
hasLuminance
public boolean hasLuminance() -
hasAlpha
public boolean hasAlpha() -
redOffset
public int redOffset() -
greenOffset
public int greenOffset() -
blueOffset
public int blueOffset() -
luminanceOffset
public int luminanceOffset() -
alphaOffset
public int alphaOffset() -
hasLuminanceOrRed
public boolean hasLuminanceOrRed() -
hasLuminanceOrGreen
public boolean hasLuminanceOrGreen() -
hasLuminanceOrBlue
public boolean hasLuminanceOrBlue() -
hasLuminanceOrAlpha
public boolean hasLuminanceOrAlpha() -
luminanceOrRedOffset
public int luminanceOrRedOffset() -
luminanceOrGreenOffset
public int luminanceOrGreenOffset() -
luminanceOrBlueOffset
public int luminanceOrBlueOffset() -
luminanceOrAlphaOffset
public int luminanceOrAlphaOffset() -
supportedByStb
public boolean supportedByStb() -
getStbFormat
-