Package com.drew.imaging.png
Class PngColorType
java.lang.Object
com.drew.imaging.png.PngColorType
- Author:
- Drew Noakes https://drewnoakes.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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. -
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.
-
-
Method Details
-
fromNumericValue
-
getNumericValue
public int getNumericValue() -
getDescription
-
getAllowedBitDepths
public int[] getAllowedBitDepths()
-