|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.render.pdf.AbstractImageAdapter
org.apache.fop.render.pdf.ImageRenderedAdapter
PDFImage implementation for the PDF renderer which handles RenderedImages.
| Field Summary |
| Fields inherited from class org.apache.fop.render.pdf.AbstractImageAdapter |
image |
| Constructor Summary | |
ImageRenderedAdapter(org.apache.xmlgraphics.image.loader.impl.ImageRendered image,
java.lang.String key)
Creates a new PDFImage from an Image instance. |
|
| Method Summary | |
int |
getBitsPerComponent()
Get the bits per color component for this image. |
PDFDeviceColorSpace |
getColorSpace()
Get the color space for this image. Possible results are: DeviceGray, DeviceRGB, or DeviceCMYK |
java.lang.String |
getFilterHint()
Returns a hint in form of a String (Possible values from PDFFilterList) indicating which filter setup should be used to encode the object. |
org.apache.xmlgraphics.image.loader.impl.ImageRendered |
getImage()
Returns the ImageRendered instance for this adapter. |
protected java.awt.color.ColorSpace |
getImageColorSpace()
Returns the image's color space. |
java.lang.String |
getMask()
Get the PDF reference for a bitmap mask. |
PDFFilter |
getPDFFilter()
Get the PDF Filter to be applied to the image. |
PDFReference |
getSoftMaskReference()
Get the PDF reference for a soft mask. |
PDFColor |
getTransparentColor()
Get the transparent color. |
boolean |
isTransparent()
Check if this image has a transparent color transparency. |
void |
outputContents(java.io.OutputStream out)
Writes the raw, unencoded contents of the image to a given output stream. |
void |
populateXObjectDictionary(PDFDictionary dict)
Populates the XObject's dictionary with additional values. The values are added to the dictionary after all the values obtained from other methods from this interface have been put into the dictionary. That allows to override certain values. |
void |
setup(PDFDocument doc)
Setup the PDF image for the current document. Some image formats may need to access the document (for example to add an ICC profile to the document). |
| Methods inherited from class org.apache.fop.render.pdf.AbstractImageAdapter |
getHeight, getICCStream, getKey, getSoftMask, getWidth, isInverted, isPS, toPDFColorSpace |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageRenderedAdapter(org.apache.xmlgraphics.image.loader.impl.ImageRendered image,
java.lang.String key)
image - the imagekey - XObject key| Method Detail |
public org.apache.xmlgraphics.image.loader.impl.ImageRendered getImage()
protected java.awt.color.ColorSpace getImageColorSpace()
getImageColorSpace in class AbstractImageAdapterpublic void setup(PDFDocument doc)
setup in interface PDFImagesetup in class AbstractImageAdapterpublic PDFDeviceColorSpace getColorSpace()
public int getBitsPerComponent()
public boolean isTransparent()
isTransparent in interface PDFImageisTransparent in class AbstractImageAdapterpublic PDFColor getTransparentColor()
getTransparentColor in interface PDFImagegetTransparentColor in class AbstractImageAdapterpublic java.lang.String getMask()
getMask in interface PDFImagegetMask in class AbstractImageAdapterpublic PDFReference getSoftMaskReference()
getSoftMaskReference in interface PDFImagegetSoftMaskReference in class AbstractImageAdapterpublic PDFFilter getPDFFilter()
public void outputContents(java.io.OutputStream out)
throws java.io.IOException
out - OutputStream to write to
java.io.IOException - if there creating streampublic void populateXObjectDictionary(PDFDictionary dict)
populateXObjectDictionary in interface PDFImagepopulateXObjectDictionary in class AbstractImageAdapterpublic java.lang.String getFilterHint()
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||