public class XTIFFImage
extends com.sun.media.jai.codecimpl.SimpleRenderedImage
Constructor and Description |
---|
XTIFFImage(com.sun.media.jai.codec.SeekableStream stream,
com.sun.media.jai.codec.TIFFDecodeParam param,
int directory)
Constructs a XTIFFImage that acquires its data from a given SeekableStream
and reads from a particular IFD of the stream.
|
Modifier and Type | Method and Description |
---|---|
XTIFFDirectory |
getPrivateIFD(long offset)
Reads a private IFD from a given offset in the stream.
|
java.awt.image.Raster |
getTile(int tileX,
int tileY)
Returns tile (tileX, tileY) as a Raster.
|
protected void |
setupImageParameters()
This method gets the image parameters from fields
|
protected void |
setupSamplesAndColor()
This method constructs the sampleModel, colorModel, determines the
image_type and the bands parameter.
|
copyData, getBounds, getColorModel, getData, getData, getHeight, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, tileXToX, tileXToX, tileYToY, tileYToY, XToTileX, XToTileX, YToTileY, YToTileY
public XTIFFImage(com.sun.media.jai.codec.SeekableStream stream, com.sun.media.jai.codec.TIFFDecodeParam param, int directory) throws java.io.IOException
stream
- the SeekableStream to read from.param
- an instance of TIFFDecodeParam, or null.directory
- the index of the IFD to read from.java.io.IOException
protected void setupImageParameters()
protected void setupSamplesAndColor()
public XTIFFDirectory getPrivateIFD(long offset) throws java.io.IOException
java.io.IOException
public java.awt.image.Raster getTile(int tileX, int tileY)