org.apache.fop.image

Class EPSImage

Implemented Interfaces:
FopImage

public class EPSImage
extends AbstractFopImage

EPS image handler. This handles the Encapulated PostScript images. It gets the dimensions and original data from the analyser.
See Also:
AbstractFopImage, FopImage

Nested Class Summary

static class
EPSImage.EPSData
Data for EPS image.

Field Summary

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

EPSImage(FopImage.ImageInfo imgInfo)
Create an EPS image with the image information.

Method Summary

int[]
getBBox()
Return the bounding box
String
getDocName()
Return the name of the eps
byte[]
getEPSImage()
Get the eps image.

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

EPSImage

public EPSImage(FopImage.ImageInfo imgInfo)
Create an EPS image with the image information.
Parameters:
imgInfo - the information containing the data and bounding box

Method Details

getBBox

public int[] getBBox()
Return the bounding box
Returns:
an int array containing the bounding box

getDocName

public String getDocName()
Return the name of the eps
Returns:
the name of the eps

getEPSImage

public byte[] getEPSImage()
Get the eps image.
Returns:
the original eps image data

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