org.apache.batik.ext.awt.image.codec.tiff

Class TIFFImage

public class TIFFImage extends AbstractRed

Field Summary
static intCOMP_DEFLATE
static intCOMP_FAX_G3_1D
static intCOMP_FAX_G3_2D
static intCOMP_FAX_G4_2D
static intCOMP_JPEG_OLD
static intCOMP_JPEG_TTN2
static intCOMP_LZW
static intCOMP_NONE
static intCOMP_PACKBITS
Constructor Summary
TIFFImage(SeekableStream stream, TIFFDecodeParam param, int directory)
Constructs a TIFFImage that acquires its data from a given SeekableStream and reads from a particular IFD of the stream.
Method Summary
WritableRastercopyData(WritableRaster wr)
TIFFDirectorygetPrivateIFD(long offset)
Reads a private IFD from a given offset in the stream.
RastergetTile(int tileX, int tileY)
Returns tile (tileX, tileY) as a Raster.

Field Detail

COMP_DEFLATE

public static final int COMP_DEFLATE

COMP_FAX_G3_1D

public static final int COMP_FAX_G3_1D

COMP_FAX_G3_2D

public static final int COMP_FAX_G3_2D

COMP_FAX_G4_2D

public static final int COMP_FAX_G4_2D

COMP_JPEG_OLD

public static final int COMP_JPEG_OLD

COMP_JPEG_TTN2

public static final int COMP_JPEG_TTN2

COMP_LZW

public static final int COMP_LZW

COMP_NONE

public static final int COMP_NONE

COMP_PACKBITS

public static final int COMP_PACKBITS

Constructor Detail

TIFFImage

public TIFFImage(SeekableStream stream, TIFFDecodeParam param, int directory)
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.

Method Detail

copyData

public WritableRaster copyData(WritableRaster wr)

getPrivateIFD

public TIFFDirectory getPrivateIFD(long offset)
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.

getTile

public Raster getTile(int tileX, int tileY)
Returns tile (tileX, tileY) as a Raster.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.