|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.render.pdf.FopPDFImage
PDFImage implementation for the PDF renderer.
| Constructor Summary | |
FopPDFImage(FopImage image,
java.lang.String key)
Creates a new PDFImage from a FopImage |
|
| Method Summary | |
int |
getBitsPerPixel()
Get the bits per pixel for this image. |
PDFDeviceColorSpace |
getColorSpace()
Get the color space for this image. |
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. |
int |
getHeight()
Get the image height in pixels. |
PDFICCStream |
getICCStream()
Get the ICC stream for this image. |
java.lang.String |
getKey()
Key to look up XObject. |
java.lang.String |
getMask()
Get the PDF reference for a bitmap mask. |
PDFFilter |
getPDFFilter()
Get the PDF Filter to be applied to the image. |
java.lang.String |
getSoftMask()
Get the PDF reference for a soft mask. |
PDFColor |
getTransparentColor()
Get the transparent color. |
int |
getWidth()
Get the image width in pixels. |
boolean |
isInverted()
|
boolean |
isPS()
Check if this image is a PostScript image. |
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. |
protected void |
outputPostScriptContents(java.io.OutputStream out)
Serializes an EPS image to an OutputStream. |
void |
setup(PDFDocument doc)
Setup the PDF image for the current document. |
static PDFDeviceColorSpace |
toPDFColorSpace(java.awt.color.ColorSpace cs)
Converts a ColorSpace object to a PDFColorSpace object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FopPDFImage(FopImage image,
java.lang.String key)
image - Imagekey - XObject key| Method Detail |
public java.lang.String getKey()
PDFImage
getKey in interface PDFImagePDFImage.getKey()public void setup(PDFDocument doc)
PDFImage
setup in interface PDFImagedoc - the PDF parent document
(todo) Remove this and delegate to the XObjectPDFImage.setup(PDFDocument)public int getWidth()
PDFImage
getWidth in interface PDFImagePDFImage.getWidth()public int getHeight()
PDFImage
getHeight in interface PDFImagePDFImage.getHeight()public PDFDeviceColorSpace getColorSpace()
PDFImage
getColorSpace in interface PDFImagePDFImage.getColorSpace()public int getBitsPerPixel()
PDFImage
getBitsPerPixel in interface PDFImagePDFImage.getBitsPerPixel()public boolean isTransparent()
PDFImage
isTransparent in interface PDFImagePDFImage.isTransparent()public PDFColor getTransparentColor()
PDFImage
getTransparentColor in interface PDFImagePDFImage.getTransparentColor()public java.lang.String getMask()
PDFImage
getMask in interface PDFImagePDFImage.getMask()public java.lang.String getSoftMask()
PDFImage
getSoftMask in interface PDFImagePDFImage.getSoftMask()public boolean isInverted()
isInverted in interface PDFImagepublic boolean isPS()
PDFImage
isPS in interface PDFImagePDFImage.isPS()public PDFFilter getPDFFilter()
PDFImage
getPDFFilter in interface PDFImagePDFImage.getPDFFilter()
public void outputContents(java.io.OutputStream out)
throws java.io.IOException
PDFImage
outputContents in interface PDFImageout - OutputStream to write to
java.io.IOException - if there creating streamPDFImage.outputContents(OutputStream)
protected void outputPostScriptContents(java.io.OutputStream out)
throws java.io.IOException
out - OutputStream to write to
java.io.IOException - in case of an I/O problempublic PDFICCStream getICCStream()
PDFImage
getICCStream in interface PDFImagePDFImage.getICCStream()public static PDFDeviceColorSpace toPDFColorSpace(java.awt.color.ColorSpace cs)
cs - ColorSpace instance
public java.lang.String getFilterHint()
PDFImage
getFilterHint in interface PDFImagePDFImage.getFilterHint()
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||