public class PDPixelMap extends PDXObjectImage
SUB_TYPE
Constructor and Description |
---|
PDPixelMap(PDStream pdStream)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getBitsPerComponent, getColorSpace, getDecode, getHeight, getImageMask, getMask, getSMaskImage, getSuffix, getWidth, setBitsPerComponent, setColorSpace, setGraphicsState, setHeight, setWidth, write2file, write2file
createXObject, getCOSObject, getCOSStream, getMetadata, getPDStream, setMetadata
public PDPixelMap(PDStream pdStream)
pdStream
- The stream that holds the pixel map.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 PDXObjectImage
IOException
- If there is an error creating the image.public void write2OutputStream(OutputStream out) throws IOException
write2OutputStream
in class PDXObjectImage
out
- the OutputStream that the Image is written to.IOException
- when somethings wrong with outpublic COSDictionary getDecodeParams()
public int getPredictor()
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.