Class TIFFImage

  • All Implemented Interfaces:
    java.awt.image.RenderedImage, CachableRed

    public class TIFFImage
    extends AbstractRed
    • Constructor Detail

      • TIFFImage

        public TIFFImage​(SeekableStream stream,
                         TIFFDecodeParam param,
                         int directory)
                  throws java.io.IOException
        Constructs a TIFFImage that acquires its data from a given SeekableStream and reads from a particular IFD of the stream. The index of the first IFD is 0.
        Parameters:
        stream - the SeekableStream to read from.
        param - an instance of TIFFDecodeParam, or null.
        directory - the index of the IFD to read from.
        Throws:
        java.io.IOException
    • Method Detail

      • getPrivateIFD

        public TIFFDirectory getPrivateIFD​(long offset)
                                    throws java.io.IOException
        Reads a private IFD from a given offset in the stream. This method may be used to obtain IFDs that are referenced only by private tag values.
        Throws:
        java.io.IOException
      • copyData

        public java.awt.image.WritableRaster copyData​(java.awt.image.WritableRaster wr)
      • getTile

        public java.awt.image.Raster getTile​(int tileX,
                                             int tileY)
        Returns tile (tileX, tileY) as a Raster.
        Specified by:
        getTile in interface java.awt.image.RenderedImage
        Overrides:
        getTile in class AbstractRed