org.apache.fop.image
Class BatikImage
java.lang.Object
|
+--org.apache.fop.image.AbstractFopImage
|
+--org.apache.fop.image.BatikImage
- All Implemented Interfaces:
- FopImage
- Direct Known Subclasses:
- PNGImage, TIFFImage
- public abstract class BatikImage
- extends AbstractFopImage
FopImage object using TIFF
- Author:
- Eric SCHAEFFER
- See Also:
AbstractFopImage
,
FopImage
Field Summary |
protected org.apache.batik.ext.awt.image.rendered.CachableRed |
cr
The Batik representation of the image |
protected org.apache.batik.ext.awt.image.codec.SeekableStream |
seekableInput
The InputStream wrapped into a SeekableStream for decoding. |
Fields inherited from class org.apache.fop.image.AbstractFopImage |
bitmaps, bitsPerPixel, colorSpace, dpiHorizontal, dpiVertical, height, imageInfo, inputStream, isTransparent, loaded, log, raw, transparentColor, width |
Method Summary |
protected abstract org.apache.batik.ext.awt.image.rendered.CachableRed |
decodeImage(org.apache.batik.ext.awt.image.codec.SeekableStream stream)
Decodes the image from the stream. |
byte[] |
getSoftMask()
Get the soft mask.
|
boolean |
hasSoftMask()
Check if this image has a soft mask. |
protected boolean |
loadBitmap()
Load a bitmap array of the image.
|
protected boolean |
loadDimensions()
Load the dimensions of the image.
|
protected void |
loadImage()
Loads the image from the InputStream. |
Methods inherited from class org.apache.fop.image.AbstractFopImage |
getBitmaps, getBitmapsSize, getBitsPerPixel, getColorSpace, getHeight, getHorizontalResolution, getICCProfile, getIntrinsicHeight, getIntrinsicWidth, getMimeType, getOriginalURI, getRessourceBytes, getRessourceBytesSize, getTransparentColor, getVerticalResolution, getWidth, isTransparent, load, loadDefaultOriginalData, loadOriginalData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
seekableInput
protected org.apache.batik.ext.awt.image.codec.SeekableStream seekableInput
- The InputStream wrapped into a SeekableStream for decoding.
cr
protected org.apache.batik.ext.awt.image.rendered.CachableRed cr
- The Batik representation of the image
BatikImage
public BatikImage(FopImage.ImageInfo imgReader)
- Constructs a new BatikImage instance.
- Parameters:
imgReader
- basic metadata for the image
loadDimensions
protected boolean loadDimensions()
- Description copied from class:
AbstractFopImage
- Load the dimensions of the image.
All implementations should override this to get and
return the dimensions.
- Overrides:
loadDimensions
in class AbstractFopImage
- See Also:
AbstractFopImage.loadDimensions()
loadBitmap
protected boolean loadBitmap()
- Description copied from class:
AbstractFopImage
- Load a bitmap array of the image.
If the renderer requires a bitmap image then the
implementations should override this to load the bitmap.
- Overrides:
loadBitmap
in class AbstractFopImage
- See Also:
AbstractFopImage.loadBitmap()
hasSoftMask
public boolean hasSoftMask()
- Description copied from class:
AbstractFopImage
- Check if this image has a soft mask.
- Overrides:
hasSoftMask
in class AbstractFopImage
- See Also:
FopImage.hasSoftMask()
getSoftMask
public byte[] getSoftMask()
- Description copied from class:
AbstractFopImage
- Get the soft mask.
The soft mask should have the same bitdepth as the image data.
- Overrides:
getSoftMask
in class AbstractFopImage
- See Also:
FopImage.getSoftMask()
decodeImage
protected abstract org.apache.batik.ext.awt.image.rendered.CachableRed decodeImage(org.apache.batik.ext.awt.image.codec.SeekableStream stream)
throws java.io.IOException
- Decodes the image from the stream.
- Parameters:
stream
- the stream to read the image from- Returns:
- the decoded image
- Throws:
java.io.IOException
- in case an I/O problem occurs
loadImage
protected void loadImage()
- Loads the image from the InputStream.
Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.