Enum ImageType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ImageType>

    enum ImageType
    extends java.lang.Enum<ImageType>
    • 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
      • PALETTE

        public static final ImageType PALETTE
      • CIELAB

        public static final ImageType CIELAB
      • GENERIC

        public static final ImageType GENERIC
    • Field Detail

      • photometricInterpretation

        private final int photometricInterpretation
    • Constructor Detail

      • ImageType

        private ImageType​(int photometricInterpretation)
    • 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 name
        java.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)