org.apache.fop.image

Class TIFFImage

Implemented Interfaces:
FopImage

public class TIFFImage
extends XmlGraphicsCommonsImage

TIFF implementation using the Batik codecs.

Field Summary

Fields inherited from class org.apache.fop.image.XmlGraphicsCommonsImage

cr, seekableInput

Fields inherited from class org.apache.fop.image.AbstractFopImage

bitmaps, bitsPerPixel, colorSpace, dpiHorizontal, dpiVertical, height, imageInfo, inputStream, invertImage, isTransparent, loaded, log, raw, transparentColor, width

Fields inherited from interface org.apache.fop.image.FopImage

BITMAP, DIMENSIONS, ORIGINAL_DATA

Constructor Summary

TIFFImage(FopImage.ImageInfo imgReader)
Constructs a new BatikImage instance.

Method Summary

protected CachableRed
decodeImage(SeekableStream stream)
int
getCompression()
The compression type set in the TIFF directory
int
getStripCount()
The number of strips in the image
protected boolean
loadOriginalData()
Load the original TIFF data.

Methods inherited from class org.apache.fop.image.XmlGraphicsCommonsImage

decodeImage, getSoftMask, hasSoftMask, loadBitmap, loadDimensions, loadImage

Methods inherited from class org.apache.fop.image.AbstractFopImage

getBitmaps, getBitmapsSize, getBitsPerPixel, getColorSpace, getHeight, getHorizontalResolution, getICCProfile, getIntrinsicAlignmentAdjust, getIntrinsicHeight, getIntrinsicWidth, getMimeType, getOriginalURI, getRessourceBytes, getRessourceBytesSize, getSoftMask, getTransparentColor, getVerticalResolution, getWidth, hasSoftMask, isInverted, isTransparent, load, loadBitmap, loadDefaultOriginalData, loadDimensions, loadOriginalData

Constructor Details

TIFFImage

public TIFFImage(FopImage.ImageInfo imgReader)
Constructs a new BatikImage instance.
Parameters:
imgReader - basic metadata for the image

Method Details

decodeImage

protected CachableRed decodeImage(SeekableStream stream)
            throws IOException
Overrides:
decodeImage in interface XmlGraphicsCommonsImage
See Also:
org.apache.fop.image.XmlGraphicsCommonsImage.decodeImage( org.apache.xmlgraphics.image.codec.util.SeekableStream)

getCompression

public int getCompression()
The compression type set in the TIFF directory
Returns:
the TIFF compression type

getStripCount

public int getStripCount()
The number of strips in the image
Returns:
the number of strips in the image

loadOriginalData

protected boolean loadOriginalData()
Load the original TIFF data. This loads only strip 1 of the original TIFF data.
Overrides:
loadOriginalData in interface AbstractFopImage
Returns:
true if loaded false for any error

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.