org.apache.fop.image

Class PNGImage

Implemented Interfaces:
FopImage

public class PNGImage
extends XmlGraphicsCommonsImage

FopImage object using PNG
Author:
Eric SCHAEFFER
See Also:
AbstractFopImage, FopImage

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 CachableRed
decodeImage(SeekableStream stream)
protected boolean
loadOriginalData()
Load the original PNG 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

PNGImage

public PNGImage(FopImage.ImageInfo imgReader)
Constructs a new PNGImage 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)

loadOriginalData

protected boolean loadOriginalData()
Load the original PNG data. This loads the original PNG data as is into memory.
Overrides:
loadOriginalData in interface AbstractFopImage
Returns:
true if loaded false for any error

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