public static enum NativeImage.PixelFormat extends java.lang.Enum<NativeImage.PixelFormat>
Enum Constant and Description |
---|
LUMINANCE |
LUMINANCE_ALPHA |
RGB |
RGBA |
Modifier and Type | Method and Description |
---|---|
int |
getGlFormat() |
int |
getOffsetAlpha() |
int |
getOffsetAlphaBits() |
int |
getPixelSize() |
boolean |
hasAlpha() |
boolean |
hasLuminanceOrAlpha() |
boolean |
isSerializable() |
void |
setGlPackAlignment() |
void |
setGlUnpackAlignment() |
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
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 getPixelSize()
public void setGlPackAlignment()
public void setGlUnpackAlignment()
public int getGlFormat()
public boolean hasAlpha()
public int getOffsetAlpha()
public boolean hasLuminanceOrAlpha()
public int getOffsetAlphaBits()
public boolean isSerializable()