|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.pdf.FopPDFImage
public class 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 keyMethod Detail |
---|
public java.lang.String getKey()
PDFImage
getKey
in interface PDFImage
PDFImage.getKey()
public void setup(PDFDocument doc)
PDFImage
setup
in interface PDFImage
doc
- the PDF parent document
(todo) Remove this and delegate to the XObjectPDFImage.setup(PDFDocument)
public int getWidth()
PDFImage
getWidth
in interface PDFImage
PDFImage.getWidth()
public int getHeight()
PDFImage
getHeight
in interface PDFImage
PDFImage.getHeight()
public PDFDeviceColorSpace getColorSpace()
PDFImage
getColorSpace
in interface PDFImage
PDFImage.getColorSpace()
public int getBitsPerPixel()
PDFImage
getBitsPerPixel
in interface PDFImage
PDFImage.getBitsPerPixel()
public boolean isTransparent()
PDFImage
isTransparent
in interface PDFImage
PDFImage.isTransparent()
public PDFColor getTransparentColor()
PDFImage
getTransparentColor
in interface PDFImage
PDFImage.getTransparentColor()
public java.lang.String getMask()
PDFImage
getMask
in interface PDFImage
PDFImage.getMask()
public java.lang.String getSoftMask()
PDFImage
getSoftMask
in interface PDFImage
PDFImage.getSoftMask()
public boolean isInverted()
isInverted
in interface PDFImage
public boolean isPS()
PDFImage
isPS
in interface PDFImage
PDFImage.isPS()
public PDFFilter getPDFFilter()
PDFImage
getPDFFilter
in interface PDFImage
PDFImage.getPDFFilter()
public void outputContents(java.io.OutputStream out) throws java.io.IOException
PDFImage
outputContents
in interface PDFImage
out
- 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 PDFImage
PDFImage.getICCStream()
public static PDFDeviceColorSpace toPDFColorSpace(java.awt.color.ColorSpace cs)
cs
- ColorSpace instance
public java.lang.String getFilterHint()
PDFImage
getFilterHint
in interface PDFImage
PDFImage.getFilterHint()
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |