Package com.drew.imaging.png
Class PngColorType
- java.lang.Object
-
- com.drew.imaging.png.PngColorType
-
public class PngColorType extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int[]_allowedBitDepthsprivate java.lang.String_descriptionprivate int_numericValuestatic PngColorTypeGREYSCALEEach pixel is a greyscale sample.static PngColorTypeGREYSCALE_WITH_ALPHAEach pixel is a greyscale sample followed by an alpha sample.static PngColorTypeINDEXED_COLOREach pixel is a palette index.static PngColorTypeTRUE_COLOREach pixel is an R,G,B triple.static PngColorTypeTRUE_COLOR_WITH_ALPHAEach pixel is an R,G,B triple followed by an alpha sample.
-
Constructor Summary
Constructors Modifier Constructor Description privatePngColorType(int numericValue, java.lang.String description, int... allowedBitDepths)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PngColorTypefromNumericValue(int numericValue)int[]getAllowedBitDepths()java.lang.StringgetDescription()intgetNumericValue()
-
-
-
Field Detail
-
GREYSCALE
public static final PngColorType GREYSCALE
Each pixel is a greyscale sample.
-
TRUE_COLOR
public static final PngColorType TRUE_COLOR
Each pixel is an R,G,B triple.
-
INDEXED_COLOR
public static final PngColorType INDEXED_COLOR
Each pixel is a palette index. Seeing this value indicates that aPLTEchunk shall appear.
-
GREYSCALE_WITH_ALPHA
public static final PngColorType GREYSCALE_WITH_ALPHA
Each pixel is a greyscale sample followed by an alpha sample.
-
TRUE_COLOR_WITH_ALPHA
public static final PngColorType TRUE_COLOR_WITH_ALPHA
Each pixel is an R,G,B triple followed by an alpha sample.
-
_numericValue
private final int _numericValue
-
_description
private final java.lang.String _description
-
_allowedBitDepths
private final int[] _allowedBitDepths
-
-
Method Detail
-
fromNumericValue
public static PngColorType fromNumericValue(int numericValue)
-
getNumericValue
public int getNumericValue()
-
getDescription
public java.lang.String getDescription()
-
getAllowedBitDepths
public int[] getAllowedBitDepths()
-
-