|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.image.AbstractFopImage
org.apache.fop.image.XmlGraphicsCommonsImage
public abstract class XmlGraphicsCommonsImage
Abstract FopImage implementation which uses the internal codecs from XML Graphics Commons.
AbstractFopImage
,
FopImage
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.fop.image.FopImage |
---|
FopImage.ImageInfo |
Field Summary | |
---|---|
protected org.apache.xmlgraphics.image.rendered.CachableRed |
cr
The Batik representation of the image |
protected org.apache.xmlgraphics.image.codec.util.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, invertImage, isTransparent, loaded, log, raw, transparentColor, width |
Fields inherited from interface org.apache.fop.image.FopImage |
---|
BITMAP, DIMENSIONS, ORIGINAL_DATA |
Constructor Summary | |
---|---|
XmlGraphicsCommonsImage(FopImage.ImageInfo imgReader)
Constructs a new BatikImage instance. |
Method Summary | |
---|---|
protected abstract org.apache.xmlgraphics.image.rendered.CachableRed |
decodeImage(org.apache.xmlgraphics.image.codec.util.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, getIntrinsicAlignmentAdjust, getIntrinsicHeight, getIntrinsicWidth, getMimeType, getOriginalURI, getRessourceBytes, getRessourceBytesSize, getTransparentColor, getVerticalResolution, getWidth, isInverted, isTransparent, load, loadDefaultOriginalData, loadOriginalData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.xmlgraphics.image.codec.util.SeekableStream seekableInput
protected org.apache.xmlgraphics.image.rendered.CachableRed cr
Constructor Detail |
---|
public XmlGraphicsCommonsImage(FopImage.ImageInfo imgReader)
imgReader
- basic metadata for the imageMethod Detail |
---|
protected boolean loadDimensions()
AbstractFopImage
loadDimensions
in class AbstractFopImage
AbstractFopImage.loadDimensions()
protected boolean loadBitmap()
AbstractFopImage
loadBitmap
in class AbstractFopImage
AbstractFopImage.loadBitmap()
public boolean hasSoftMask()
AbstractFopImage
hasSoftMask
in interface FopImage
hasSoftMask
in class AbstractFopImage
FopImage.hasSoftMask()
public byte[] getSoftMask()
AbstractFopImage
getSoftMask
in interface FopImage
getSoftMask
in class AbstractFopImage
FopImage.getSoftMask()
protected abstract org.apache.xmlgraphics.image.rendered.CachableRed decodeImage(org.apache.xmlgraphics.image.codec.util.SeekableStream stream) throws java.io.IOException
stream
- the stream to read the image from
java.io.IOException
- in case an I/O problem occursprotected void loadImage()
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |