|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.pdfbox.pdmodel.graphics.xobject.PDXObject
org.pdfbox.pdmodel.graphics.xobject.PDXObjectImage
org.pdfbox.pdmodel.graphics.xobject.PDPixelMap
This class contains a PixelMap Image.
| Field Summary |
| Fields inherited from class org.pdfbox.pdmodel.graphics.xobject.PDXObjectImage |
SUB_TYPE |
| Constructor Summary | |
PDPixelMap(PDStream pdStream)
Standard constructor. |
|
| Method Summary | |
COSDictionary |
getDecodeParams()
DecodeParms is an optional parameter for filters. |
int |
getPredictor()
A code that selects the predictor algorithm. |
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.pdfbox.pdmodel.graphics.xobject.PDXObjectImage |
getBitsPerComponent, getColorSpace, getHeight, getSuffix, getWidth, setBitsPerComponent, setColorSpace, setHeight, setWidth, write2file |
| Methods inherited from class org.pdfbox.pdmodel.graphics.xobject.PDXObject |
createXObject, getCOSObject, getCOSStream, getMetadata, getPDStream, setMetadata |
| 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.| 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()
public int getPredictor()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||