Package com.drew.imaging.png
Class PngColorType
java.lang.Object
com.drew.imaging.png.PngColorType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]private final Stringprivate final intstatic final PngColorTypeEach pixel is a greyscale sample.static final PngColorTypeEach pixel is a greyscale sample followed by an alpha sample.static final PngColorTypeEach pixel is a palette index.static final PngColorTypeEach pixel is an R,G,B triple.static final PngColorTypeEach pixel is an R,G,B triple followed by an alpha sample. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePngColorType(int numericValue, String description, int... allowedBitDepths) -
Method Summary
Modifier and TypeMethodDescriptionstatic PngColorTypefromNumericValue(int numericValue) int[]int
-
Field Details
-
GREYSCALE
Each pixel is a greyscale sample. -
TRUE_COLOR
Each pixel is an R,G,B triple. -
INDEXED_COLOR
Each pixel is a palette index. Seeing this value indicates that aPLTEchunk shall appear. -
GREYSCALE_WITH_ALPHA
Each pixel is a greyscale sample followed by an alpha sample. -
TRUE_COLOR_WITH_ALPHA
Each pixel is an R,G,B triple followed by an alpha sample. -
_numericValue
private final int _numericValue -
_description
-
_allowedBitDepths
private final int[] _allowedBitDepths
-
-
Constructor Details
-
PngColorType
-
-
Method Details
-
fromNumericValue
-
getNumericValue
public int getNumericValue() -
getDescription
-
getAllowedBitDepths
public int[] getAllowedBitDepths()
-