|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.xobject.PDXObject
org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage
org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap
public class PDPixelMap
This class contains a PixelMap Image.
| Field Summary |
|---|
| Fields inherited from class org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage |
|---|
SUB_TYPE |
| Constructor Summary | |
|---|---|
PDPixelMap(PDDocument doc,
BufferedImage bi)
Construct a pixel map image from an AWT image. |
|
PDPixelMap(PDStream pdStream)
Standard constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Calling this will release all cached information. |
COSDictionary |
getDecodeParams()
Deprecated. Use PDStream.getDecodeParms() instead |
int |
getPredictor()
Deprecated. see FlateFilter |
BufferedImage |
getRGBImage()
Returns a BufferedImage of the COSStream
set in the constructor or null if the COSStream could not be encoded. |
void |
write2OutputStream(OutputStream out)
Writes the image as .png. |
| Methods inherited from class org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage |
|---|
applyMasks, createThumbnailXObject, getBitsPerComponent, getColorSpace, getDecode, getHeight, getImageMask, getMask, getSMaskImage, getStencilColor, getSuffix, getWidth, hasMask, imageMask, mask, setBitsPerComponent, setColorSpace, setHeight, setStencilColor, setWidth, write2file, write2file |
| Methods inherited from class org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject |
|---|
commonXObjectCreation, createXObject, getCOSObject, getCOSStream, getMetadata, getPDStream, getStructParent, setMetadata, setStructParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDPixelMap(PDStream pdStream)
pdStream - The stream that holds the pixel map.
public PDPixelMap(PDDocument doc,
BufferedImage bi)
throws IOException
doc - The PDF document to embed the image in.bi - The image to read data from.
IOException - If there is an error while embedding this image.| Method Detail |
|---|
public BufferedImage getRGBImage()
throws IOException
BufferedImage of the COSStream
set in the constructor or null if the COSStream could not be encoded.
getRGBImage in class PDXObjectImageIOException - If there is an error creating the image.
public void write2OutputStream(OutputStream out)
throws IOException
write2OutputStream in class PDXObjectImageout - the OutputStream that the Image is written to.
IOException - when somethings wrong with outpublic COSDictionary getDecodeParams()
PDStream.getDecodeParms() instead
public int getPredictor()
FlateFilter
public void clear()
PDXObject
clear in class PDXObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||