Class TiffImageData


public class TiffImageData extends RawImageData
  • Constructor Details

    • TiffImageData

      protected TiffImageData (URL url, boolean recoverFromImageError, int page, boolean direct)
    • TiffImageData

      protected TiffImageData (byte[] bytes, boolean recoverFromImageError, int page, boolean direct)
  • Method Details

    • getNumberOfPages

      public static int getNumberOfPages (RandomAccessFileOrArray raf)
      Gets the number of pages the TIFF document has.
      Parameters:
      raf - a RandomAccessFileOrArray containing a TIFF image.
      Returns:
      the number of pages.
    • getNumberOfPages

      public static int getNumberOfPages (byte[] bytes)
      Gets the number of pages the TIFF document has.
      Parameters:
      bytes - a byte array containing a TIFF image.
      Returns:
      the number of pages.
    • isRecoverFromImageError

      public boolean isRecoverFromImageError()
    • getPage

      public int getPage()
    • isDirect

      public boolean isDirect()
    • setOriginalType

      public void setOriginalType (ImageType originalType)