|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.pdf.AlphaRasterImage
PDFImage implementation for alpha channel "images".
| Constructor Summary | |
AlphaRasterImage(java.lang.String k,
java.awt.image.Raster alpha)
Create a alpha channel image. |
|
AlphaRasterImage(java.lang.String k,
java.awt.image.RenderedImage image)
Create a alpha channel image. |
|
| 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. |
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. This should be a unique key to refer to the image. |
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()
{@inheritDoc} |
PDFReference |
getSoftMaskReference()
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. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AlphaRasterImage(java.lang.String k,
java.awt.image.Raster alpha)
k - the key to be used to lookup the imagealpha - the alpha channel raster
public AlphaRasterImage(java.lang.String k,
java.awt.image.RenderedImage image)
k - the key to be used to lookup the imageimage - the image (must have an alpha channel)| Method Detail |
public void setup(PDFDocument doc)
setup in interface PDFImagedoc - the PDF parent document
(todo) Remove this and delegate to the XObjectpublic java.lang.String getKey()
getKey in interface PDFImagepublic int getWidth()
getWidth in interface PDFImagepublic int getHeight()
getHeight in interface PDFImagepublic PDFDeviceColorSpace getColorSpace()
getColorSpace in interface PDFImagepublic int getBitsPerComponent()
getBitsPerComponent in interface PDFImagepublic boolean isTransparent()
isTransparent in interface PDFImagepublic PDFColor getTransparentColor()
getTransparentColor in interface PDFImagepublic java.lang.String getMask()
getMask in interface PDFImagepublic java.lang.String getSoftMask()
public PDFReference getSoftMaskReference()
getSoftMaskReference in interface PDFImagepublic boolean isInverted()
isInverted in interface PDFImage
public void outputContents(java.io.OutputStream out)
throws java.io.IOException
outputContents in interface PDFImageout - OutputStream to write to
java.io.IOException - if there creating streampublic void populateXObjectDictionary(PDFDictionary dict)
populateXObjectDictionary in interface PDFImagedict - the dictionary to fillpublic PDFICCStream getICCStream()
getICCStream in interface PDFImagepublic boolean isPS()
isPS in interface PDFImagepublic java.lang.String getFilterHint()
getFilterHint in interface PDFImagepublic PDFFilter getPDFFilter()
getPDFFilter in interface PDFImage
|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||