public static enum NativeImage.PixelFormat extends java.lang.Enum<NativeImage.PixelFormat>
Enum Constant and Description |
---|
LUMINANCE |
LUMINANCE_ALPHA |
RGB |
RGBA |
Modifier and Type | Field and Description |
---|---|
private int |
alphaOffset |
private int |
blueOffset |
private int |
components |
private int |
glFormat |
private int |
greenOffset |
private boolean |
hasAlpha |
private boolean |
hasBlue |
private boolean |
hasGreen |
private boolean |
hasLuminance |
private boolean |
hasRed |
private int |
luminanceOffset |
private int |
redOffset |
private boolean |
supportedByStb |
Modifier and Type | Method and Description |
---|---|
int |
alphaOffset() |
int |
components() |
private static NativeImage.PixelFormat |
getStbFormat(int p_211646_0_) |
int |
glFormat() |
boolean |
hasAlpha() |
boolean |
hasLuminanceOrAlpha() |
int |
luminanceOrAlphaOffset() |
void |
setPackPixelStoreState() |
void |
setUnpackPixelStoreState() |
boolean |
supportedByStb() |
static NativeImage.PixelFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NativeImage.PixelFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NativeImage.PixelFormat RGBA
public static final NativeImage.PixelFormat RGB
public static final NativeImage.PixelFormat LUMINANCE_ALPHA
public static final NativeImage.PixelFormat LUMINANCE
private final int components
private final int glFormat
private final boolean hasRed
private final boolean hasGreen
private final boolean hasBlue
private final boolean hasLuminance
private final boolean hasAlpha
private final int redOffset
private final int greenOffset
private final int blueOffset
private final int luminanceOffset
private final int alphaOffset
private final boolean supportedByStb
public static NativeImage.PixelFormat[] values()
for (NativeImage.PixelFormat c : NativeImage.PixelFormat.values()) System.out.println(c);
public static NativeImage.PixelFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int components()
public void setPackPixelStoreState()
public void setUnpackPixelStoreState()
public int glFormat()
public boolean hasAlpha()
public int alphaOffset()
public boolean hasLuminanceOrAlpha()
public int luminanceOrAlphaOffset()
public boolean supportedByStb()
private static NativeImage.PixelFormat getStbFormat(int p_211646_0_)