public enum PngColorType extends java.lang.Enum<PngColorType>
Enum Constant and Description |
---|
Greyscale
Each pixel is a greyscale sample.
|
GreyscaleWithAlpha
Each pixel is a greyscale sample followed by an alpha sample.
|
IndexedColor
Each pixel is a palette index.
|
TrueColor
Each pixel is an R,G,B triple.
|
TrueColorWithAlpha
Each pixel is an R,G,B triple followed by an alpha sample.
|
Modifier and Type | Field and Description |
---|---|
private int[] |
_allowedBitDepths |
private java.lang.String |
_description |
private int |
_numericValue |
Modifier and Type | Method and Description |
---|---|
static PngColorType |
fromNumericValue(int numericValue) |
int[] |
getAllowedBitDepths() |
java.lang.String |
getDescription() |
int |
getNumericValue() |
static PngColorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PngColorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PngColorType Greyscale
public static final PngColorType TrueColor
public static final PngColorType IndexedColor
PLTE
chunk shall appear.public static final PngColorType GreyscaleWithAlpha
public static final PngColorType TrueColorWithAlpha
private final int _numericValue
private final java.lang.String _description
private final int[] _allowedBitDepths
public static PngColorType[] values()
for (PngColorType c : PngColorType.values()) System.out.println(c);
public static PngColorType 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 static PngColorType fromNumericValue(int numericValue)
public int getNumericValue()
public java.lang.String getDescription()
public int[] getAllowedBitDepths()