Package mil.nga.tiff

Class TiffWriter

    • Constructor Detail

      • TiffWriter

        public TiffWriter()
    • Method Detail

      • writeTiff

        public static void writeTiff​(File file,
                                     TIFFImage tiffImage)
                              throws IOException
        Write a TIFF to a file
        Parameters:
        file - file to create
        tiffImage - TIFF image
        Throws:
        IOException - upon failure to write
      • writeTiff

        public static void writeTiff​(File file,
                                     ByteWriter writer,
                                     TIFFImage tiffImage)
                              throws IOException
        Write a TIFF to a file
        Parameters:
        file - file to create
        writer - byte writer
        tiffImage - TIFF Image
        Throws:
        IOException - upon failure to write
      • writeTiffToBytes

        public static byte[] writeTiffToBytes​(TIFFImage tiffImage)
                                       throws IOException
        Write a TIFF to bytes
        Parameters:
        tiffImage - TIFF image
        Returns:
        tiff bytes
        Throws:
        IOException - upon failure to write
      • writeTiffToBytes

        public static byte[] writeTiffToBytes​(ByteWriter writer,
                                              TIFFImage tiffImage)
                                       throws IOException
        Write a TIFF to bytes
        Parameters:
        writer - byte writer
        tiffImage - TIFF image
        Returns:
        tiff bytes
        Throws:
        IOException - upon failure to write
      • writeTiff

        public static void writeTiff​(ByteWriter writer,
                                     TIFFImage tiffImage)
                              throws IOException
        Write a TIFF to a byte writer
        Parameters:
        writer - byte writer
        tiffImage - TIFF image
        Throws:
        IOException - upon failure to write