Enum Constant and Description |
---|
BILEVEL_BLACK_IS_ZERO |
BILEVEL_WHITE_IS_ZERO |
CIELAB |
CMYK |
GENERIC |
GRAY |
PALETTE |
RGB |
UNSUPPORTED |
YCBCR |
Modifier and Type | Field and Description |
---|---|
private int |
photometricInterpretation |
Modifier and Type | Method and Description |
---|---|
private static boolean |
bilevelColorValue(byte[] r,
byte[] g,
byte[] b,
int blackValue,
int whiteValue) |
(package private) int |
getPhotometricInterpretation() |
(package private) static ImageType |
getTypeFromColorSpace(java.awt.color.ColorSpace colorSpace,
TIFFEncodeParam params) |
(package private) static ImageType |
getTypeFromRGB(int mapSize,
byte[] r,
byte[] g,
byte[] b,
int dataTypeSize,
int numBands) |
private static boolean |
isBlackZero(byte[] r,
byte[] g,
byte[] b) |
private static boolean |
isWhiteZero(byte[] r,
byte[] g,
byte[] b) |
private static boolean |
rgbIsValueAt(byte[] r,
byte[] g,
byte[] b,
byte value,
int i) |
static ImageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageType UNSUPPORTED
public static final ImageType BILEVEL_WHITE_IS_ZERO
public static final ImageType BILEVEL_BLACK_IS_ZERO
public static final ImageType GRAY
public static final ImageType PALETTE
public static final ImageType RGB
public static final ImageType CMYK
public static final ImageType YCBCR
public static final ImageType CIELAB
public static final ImageType GENERIC
public static ImageType[] values()
for (ImageType c : ImageType.values()) System.out.println(c);
public static ImageType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullint getPhotometricInterpretation()
static ImageType getTypeFromRGB(int mapSize, byte[] r, byte[] g, byte[] b, int dataTypeSize, int numBands)
private static boolean rgbIsValueAt(byte[] r, byte[] g, byte[] b, byte value, int i)
private static boolean bilevelColorValue(byte[] r, byte[] g, byte[] b, int blackValue, int whiteValue)
private static boolean isBlackZero(byte[] r, byte[] g, byte[] b)
private static boolean isWhiteZero(byte[] r, byte[] g, byte[] b)
static ImageType getTypeFromColorSpace(java.awt.color.ColorSpace colorSpace, TIFFEncodeParam params)