public class PngColorType extends Object
Modifier and Type | Field and Description |
---|---|
static PngColorType |
GREYSCALE
Each pixel is a greyscale sample.
|
static PngColorType |
GREYSCALE_WITH_ALPHA
Each pixel is a greyscale sample followed by an alpha sample.
|
static PngColorType |
INDEXED_COLOR
Each pixel is a palette index.
|
static PngColorType |
TRUE_COLOR
Each pixel is an R,G,B triple.
|
static PngColorType |
TRUE_COLOR_WITH_ALPHA
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() |
public static final PngColorType GREYSCALE
public static final PngColorType TRUE_COLOR
public static final PngColorType INDEXED_COLOR
PLTE
chunk shall appear.public static final PngColorType GREYSCALE_WITH_ALPHA
public static final PngColorType TRUE_COLOR_WITH_ALPHA
public static PngColorType fromNumericValue(int numericValue)
public int getNumericValue()
public String getDescription()
public int[] getAllowedBitDepths()
Copyright © 2002-2020 Drew Noakes. All Rights Reserved.