org.apache.fop.pdf
| Constructor and Description |
|---|
BitmapImage(java.lang.String k,
int width,
int height,
byte[] data,
java.lang.String mask)
Create a bitmap image.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBitsPerComponent()
Get the bits per color component for this image.
|
PDFDeviceColorSpace |
getColorSpace()
Get the color space for the image data.
|
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 height of this image.
|
PDFICCStream |
getICCStream()
Get the ICC stream.
|
java.lang.String |
getKey()
Get the key for this image.
|
java.lang.String |
getMask()
Get the bitmap mask reference for this image.
|
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 for this image.
|
int |
getWidth()
Get the width of this image.
|
boolean |
isInverted() |
boolean |
isPS()
Check if this is a postscript image.
|
boolean |
isTransparent()
Check if this image has a transparent color.
|
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.
|
void |
setColorSpace(PDFDeviceColorSpace cs)
Set the color space for this image.
|
void |
setTransparent(PDFColor t)
Set the transparent color for this iamge.
|
void |
setup(PDFDocument doc)
Setup this image with the pdf document.
|
public BitmapImage(java.lang.String k,
int width,
int height,
byte[] data,
java.lang.String mask)
k - the key to be used to lookup the imagewidth - the width of the imageheight - the height of the imagedata - the bitmap datamask - the transparency mask reference if anypublic void setup(PDFDocument doc)
public java.lang.String getKey()
public int getWidth()
public int getHeight()
public void setColorSpace(PDFDeviceColorSpace cs)
cs - the pdf color spacepublic PDFDeviceColorSpace getColorSpace()
getColorSpace in interface PDFImagepublic int getBitsPerComponent()
getBitsPerComponent in interface PDFImagepublic void setTransparent(PDFColor t)
t - the transparent colorpublic boolean isTransparent()
isTransparent in interface PDFImagepublic PDFColor getTransparentColor()
getTransparentColor in interface PDFImagepublic java.lang.String getMask()
public PDFReference getSoftMaskReference()
getSoftMaskReference in interface PDFImagepublic boolean isInverted()
isInverted in interface PDFImagepublic void outputContents(java.io.OutputStream out)
throws java.io.IOException
outputContents in interface PDFImageout - OutputStream to write tojava.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()
public java.lang.String getFilterHint()
getFilterHint in interface PDFImagepublic PDFFilter getPDFFilter()
getPDFFilter in interface PDFImageCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.