@Environment(value=CLIENT) public static enum NativeImage.Format extends Enum<NativeImage.Format>
Enum Constant and Description |
---|
ABGR |
BGR |
LUMINANCE |
LUMINANCE_ALPHA |
Modifier and Type | Field and Description |
---|---|
private int |
alphaChannelOffset |
private int |
blueOffset |
private int |
channelCount |
private int |
greenOffset |
private boolean |
hasAlpha |
private boolean |
hasBlue |
private boolean |
hasGreen |
private boolean |
hasLuminance |
private boolean |
hasRed |
private int |
luminanceChannelOffset |
private int |
pixelDataFormat |
private int |
redOffset |
private boolean |
writeable |
Modifier and Type | Method and Description |
---|---|
int |
getAlphaChannelOffset() |
int |
getChannelCount() |
private static NativeImage.Format |
getFormat(int glFormat) |
int |
getOpacityOffset() |
int |
getPixelDataFormat() |
boolean |
hasAlphaChannel() |
boolean |
hasOpacityChannel() |
boolean |
isWriteable() |
void |
setPackAlignment() |
void |
setUnpackAlignment() |
static NativeImage.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NativeImage.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NativeImage.Format ABGR
public static final NativeImage.Format BGR
public static final NativeImage.Format LUMINANCE_ALPHA
public static final NativeImage.Format LUMINANCE
private final int channelCount
private final int pixelDataFormat
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 luminanceChannelOffset
private final int alphaChannelOffset
private final boolean writeable
public static NativeImage.Format[] values()
for (NativeImage.Format c : NativeImage.Format.values()) System.out.println(c);
public static NativeImage.Format valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getChannelCount()
public void setPackAlignment()
public void setUnpackAlignment()
public int getPixelDataFormat()
public boolean hasAlphaChannel()
public int getAlphaChannelOffset()
public boolean hasOpacityChannel()
public int getOpacityOffset()
public boolean isWriteable()
private static NativeImage.Format getFormat(int glFormat)