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 boolean |
blue |
private int |
glFormat |
private boolean |
green |
private boolean |
hasAlpha |
private boolean |
hasLuminance |
private int |
offsetAlpha |
private int |
offsetBlue |
private int |
offsetGreen |
private int |
offsetLuminance |
private int |
offsetRed |
private int |
pixelSize |
private boolean |
red |
private boolean |
serializable |
Modifier and Type | Method and Description |
---|---|
private static NativeImage.PixelFormat |
fromChannelCount(int channelsIn) |
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
private final int pixelSize
private final int glFormat
private final boolean red
private final boolean green
private final boolean blue
private final boolean hasLuminance
private final boolean hasAlpha
private final int offsetRed
private final int offsetGreen
private final int offsetBlue
private final int offsetLuminance
private final int offsetAlpha
private final boolean serializable
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()
private static NativeImage.PixelFormat fromChannelCount(int channelsIn)