fop 0.94

org.apache.fop.image
Class TIFFImage

java.lang.Object
  extended by org.apache.fop.image.AbstractFopImage
      extended by org.apache.fop.image.XmlGraphicsCommonsImage
          extended by org.apache.fop.image.TIFFImage
All Implemented Interfaces:
FopImage

public class TIFFImage
extends XmlGraphicsCommonsImage

TIFF implementation using the Batik codecs.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.fop.image.FopImage
FopImage.ImageInfo
 
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  org.apache.xmlgraphics.image.rendered.CachableRed decodeImage(org.apache.xmlgraphics.image.codec.util.SeekableStream stream)
          Decodes the image from the 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
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, getTransparentColor, getVerticalResolution, getWidth, isInverted, isTransparent, load, loadDefaultOriginalData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TIFFImage

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

Parameters:
imgReader - basic metadata for the image
Method Detail

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

decodeImage

protected org.apache.xmlgraphics.image.rendered.CachableRed decodeImage(org.apache.xmlgraphics.image.codec.util.SeekableStream stream)
                                                                 throws java.io.IOException
Description copied from class: XmlGraphicsCommonsImage
Decodes the image from the stream.

Specified by:
decodeImage in class XmlGraphicsCommonsImage
Parameters:
stream - the stream to read the image from
Returns:
the decoded image
Throws:
java.io.IOException - in case an I/O problem occurs
See Also:
XmlGraphicsCommonsImage.decodeImage( org.apache.xmlgraphics.image.codec.util.SeekableStream)

loadOriginalData

protected boolean loadOriginalData()
Load the original TIFF data. This loads only strip 1 of the original TIFF data.

Overrides:
loadOriginalData in class AbstractFopImage
Returns:
true if loaded false for any error
See Also:
AbstractFopImage.loadOriginalData()

fop 0.94

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