Class TIFFUtil


  • final class TIFFUtil
    extends java.lang.Object
    Used by ImageIOUtil to write TIFF files.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.apache.commons.logging.Log LOG  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TIFFUtil()  
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
    • Constructor Detail

      • TIFFUtil

        private TIFFUtil()
    • Method Detail

      • setCompressionType

        public static void setCompressionType​(javax.imageio.ImageWriteParam param,
                                              java.awt.image.BufferedImage image)
        Sets the ImageIO parameter compression type based on the given image.
        Parameters:
        image - buffered image used to decide compression type
        param - ImageIO write parameter to update
      • createShortField

        private static javax.imageio.metadata.IIOMetadataNode createShortField​(int tiffTagNumber,
                                                                               java.lang.String name,
                                                                               int val)
      • createAsciiField

        private static javax.imageio.metadata.IIOMetadataNode createAsciiField​(int number,
                                                                               java.lang.String name,
                                                                               java.lang.String val)
      • createLongField

        private static javax.imageio.metadata.IIOMetadataNode createLongField​(int number,
                                                                              java.lang.String name,
                                                                              long val)
      • createRationalField

        private static javax.imageio.metadata.IIOMetadataNode createRationalField​(int number,
                                                                                  java.lang.String name,
                                                                                  int numerator,
                                                                                  int denominator)