fop 0.94

org.apache.fop.image
Class PNGImage

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

public class PNGImage
extends XmlGraphicsCommonsImage

FopImage object using PNG

Author:
Eric SCHAEFFER
See Also:
AbstractFopImage, FopImage

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
PNGImage(FopImage.ImageInfo imgReader)
          Constructs a new PNGImage 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.
protected  boolean loadOriginalData()
          Load the original PNG 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

PNGImage

public PNGImage(FopImage.ImageInfo imgReader)
Constructs a new PNGImage instance.

Parameters:
imgReader - basic metadata for the image
Method Detail

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 PNG data. This loads the original PNG data as is into memory.

Overrides:
loadOriginalData in class AbstractFopImage
Returns:
true if loaded false for any error

fop 0.94

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