Enum Class ImageType

java.lang.Object
java.lang.Enum<ImageType>
org.apache.xmlgraphics.image.codec.tiff.ImageType
All Implemented Interfaces:
Serializable, Comparable<ImageType>, Constable

enum ImageType extends Enum<ImageType>
  • Enum Constant Details

    • 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
  • Field Details

    • photometricInterpretation

      private final int photometricInterpretation
  • Constructor Details

    • ImageType

      private ImageType(int photometricInterpretation)
  • Method Details

    • values

      public static ImageType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ImageType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      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(ColorSpace colorSpace, TIFFEncodeParam params)