Package lizard.tiff

Examples of lizard.tiff.Tiff


  private Image getTiffImage(String inFile) throws IOException
  {
      FileInputStream fileInputStream = null;
      try {
        Tiff t = new Tiff();
            fileInputStream = new FileInputStream(inFile);
            t.readInputStream(fileInputStream);
   
        if (t.getPageCount() == 0)
          throw new IOException("No images inside TIFF file");
   
        return t.getImage(0);
      } finally {
          IOUtils.closeQuietly(fileInputStream);
      }
  }
View Full Code Here


    //--------------------------------------------------------------------------

    private Image getTiffImage(String inFile) throws IOException {
        FileInputStream fileInputStream = null;
        try {
            Tiff t = new Tiff();
            fileInputStream = new FileInputStream(inFile);
            t.readInputStream(fileInputStream);

            if (t.getPageCount() == 0)
                throw new IOException("No images inside TIFF file");

            return t.getImage(0);
        } finally {
            IOUtils.closeQuietly(fileInputStream);
        }
    }
View Full Code Here

TOP

Related Classes of lizard.tiff.Tiff

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.