Class XTIFFImage
java.lang.Object
com.sun.media.jai.codecimpl.SimpleRenderedImage
org.libtiff.jai.codecimpl.XTIFFImage
- All Implemented Interfaces:
RenderedImage
public class XTIFFImage
extends com.sun.media.jai.codecimpl.SimpleRenderedImage
-
Field Summary
Fields inherited from class com.sun.media.jai.codecimpl.SimpleRenderedImage
colorModel, height, minX, minY, properties, sampleModel, sources, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width -
Constructor Summary
ConstructorsConstructorDescriptionXTIFFImage(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. -
Method Summary
Modifier and TypeMethodDescriptiongetPrivateIFD(long offset) Reads a private IFD from a given offset in the stream.getTile(int tileX, int tileY) Returns tile (tileX, tileY) as a Raster.protected voidThis method gets the image parameters from fieldsprotected voidThis method constructs the sampleModel, colorModel, determines the image_type and the bands parameter.Methods inherited from class com.sun.media.jai.codecimpl.SimpleRenderedImage
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
-
Constructor Details
-
XTIFFImage
public XTIFFImage(com.sun.media.jai.codec.SeekableStream stream, com.sun.media.jai.codec.TIFFDecodeParam param, int directory) throws IOException Constructs a XTIFFImage 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:
IOException
-
-
Method Details
-
setupImageParameters
protected void setupImageParameters()This method gets the image parameters from fields -
setupSamplesAndColor
protected void setupSamplesAndColor()This method constructs the sampleModel, colorModel, determines the image_type and the bands parameter. -
getPrivateIFD
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:
IOException
-
getTile
Returns tile (tileX, tileY) as a Raster.
-