public enum PngColorType extends 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 | Method and Description |
---|---|
static PngColorType |
fromNumericValue(int numericValue) |
int[] |
getAllowedBitDepths() |
String |
getDescription() |
int |
getNumericValue() |
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 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
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 static PngColorType fromNumericValue(int numericValue)
public int getNumericValue()
public String getDescription()
public int[] getAllowedBitDepths()
Copyright © 2022. All rights reserved.