Examples of 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

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
TOP
Copyright © 2018 www.massapi.com. 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.