|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.pdf.BitmapImage
Bitmap image. This is used to create a bitmap image that will be inserted into pdf.
| Constructor Summary | |
BitmapImage(java.lang.String k,
int width,
int height,
byte[] data,
java.lang.String mask)
Create a bitmap image. |
|
| Method Summary | |
int |
getBitsPerPixel()
Get the number of bits per pixel. |
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. |
java.lang.String |
getSoftMask()
Get the soft mask reference for this image. |
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 |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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 transparancy mask reference if any| Method Detail |
public void setup(PDFDocument doc)
setup in interface PDFImagedoc - the pdf document this will be inserted intopublic java.lang.String getKey()
getKey in interface PDFImagepublic int getWidth()
getWidth in interface PDFImagepublic int getHeight()
getHeight in interface PDFImagepublic void setColorSpace(PDFDeviceColorSpace cs)
cs - the pdf color spacepublic PDFDeviceColorSpace getColorSpace()
getColorSpace in interface PDFImagepublic int getBitsPerPixel()
getBitsPerPixel 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()
getMask in interface PDFImagepublic java.lang.String getSoftMask()
getSoftMask in interface PDFImagepublic boolean isInverted()
isInverted in interface PDFImagePDFImage.isInverted()
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)public PDFICCStream getICCStream()
getICCStream in interface PDFImagepublic boolean isPS()
isPS in interface PDFImagepublic java.lang.String getFilterHint()
PDFImage
getFilterHint in interface PDFImagePDFImage.getFilterHint()public PDFFilter getPDFFilter()
PDFImage
getPDFFilter in interface PDFImagePDFImage.getPDFFilter()
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||