public enum PngColorType extends Enum<PngColorType>
Represents the PNG image color type.
Enum Constant and Description |
---|
Grayscale
Represents the color type where each pixel is a greyscale sample.
|
GrayscaleWithAlpha
Represents the color type where each pixel is a grayscale sample followed by an alpha sample.
|
IndexedColor
Represents the color type where each pixel is a palette index; a PLTE chunk shall appear.
|
Truecolor
Represents the color type where each pixel is an R,G,B triple.
|
TruecolorWithAlpha
Represents the color type where each pixel is an R,G,B triple followed by an alpha sample.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Gets the value that represents the type of the enum.
|
static PngColorType |
valueOf(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 Grayscale
Represents the color type where each pixel is a greyscale sample.
public static final PngColorType Truecolor
Represents the color type where each pixel is an R,G,B triple.
public static final PngColorType IndexedColor
Represents the color type where each pixel is a palette index; a PLTE chunk shall appear.
public static final PngColorType GrayscaleWithAlpha
Represents the color type where each pixel is a grayscale sample followed by an alpha sample.
public static final PngColorType TruecolorWithAlpha
Represents the color type where each pixel is an R,G,B triple followed by an alpha sample.
public static PngColorType[] values()
for (PngColorType c : PngColorType.values()) System.out.println(c);
public static PngColorType 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 getType()