Enum ImageType
- java.lang.Object
-
- java.lang.Enum<ImageType>
-
- org.apache.xmlgraphics.image.codec.tiff.ImageType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BILEVEL_BLACK_IS_ZEROBILEVEL_WHITE_IS_ZEROCIELABCMYKGENERICGRAYPALETTERGBUNSUPPORTEDYCBCR
-
Field Summary
Fields Modifier and Type Field Description private intphotometricInterpretation
-
Constructor Summary
Constructors Modifier Constructor Description privateImageType(int photometricInterpretation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static booleanbilevelColorValue(byte[] r, byte[] g, byte[] b, int blackValue, int whiteValue)(package private) intgetPhotometricInterpretation()(package private) static ImageTypegetTypeFromColorSpace(java.awt.color.ColorSpace colorSpace, TIFFEncodeParam params)(package private) static ImageTypegetTypeFromRGB(int mapSize, byte[] r, byte[] g, byte[] b, int dataTypeSize, int numBands)private static booleanisBlackZero(byte[] r, byte[] g, byte[] b)private static booleanisWhiteZero(byte[] r, byte[] g, byte[] b)private static booleanrgbIsValueAt(byte[] r, byte[] g, byte[] b, byte value, int i)static ImageTypevalueOf(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.
-
-
-
Enum Constant Detail
-
UNSUPPORTED
public static final ImageType UNSUPPORTED
-
BILEVEL_WHITE_IS_ZERO
public static final ImageType BILEVEL_WHITE_IS_ZERO
-
BILEVEL_BLACK_IS_ZERO
public static final ImageType BILEVEL_BLACK_IS_ZERO
-
GRAY
public static final ImageType GRAY
-
PALETTE
public static final ImageType PALETTE
-
RGB
public static final ImageType RGB
-
CMYK
public static final ImageType CMYK
-
YCBCR
public static final ImageType YCBCR
-
CIELAB
public static final ImageType CIELAB
-
GENERIC
public static final ImageType GENERIC
-
-
Method Detail
-
values
public static ImageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ImageType c : ImageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getPhotometricInterpretation
int getPhotometricInterpretation()
-
getTypeFromRGB
static ImageType getTypeFromRGB(int mapSize, byte[] r, byte[] g, byte[] b, int dataTypeSize, int numBands)
-
rgbIsValueAt
private static boolean rgbIsValueAt(byte[] r, byte[] g, byte[] b, byte value, int i)
-
bilevelColorValue
private static boolean bilevelColorValue(byte[] r, byte[] g, byte[] b, int blackValue, int whiteValue)
-
isBlackZero
private static boolean isBlackZero(byte[] r, byte[] g, byte[] b)
-
isWhiteZero
private static boolean isWhiteZero(byte[] r, byte[] g, byte[] b)
-
getTypeFromColorSpace
static ImageType getTypeFromColorSpace(java.awt.color.ColorSpace colorSpace, TIFFEncodeParam params)
-
-