Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.graphics.xobject » [javadoc | source]
org.apache.pdfbox.pdmodel.graphics.xobject
public class: PDPixelMap [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject
      org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage
         org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap

All Implemented Interfaces:
    COSObjectable

This class contains a PixelMap Image.
Fields inherited from org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage:
SUB_TYPE
Constructor:
 public PDPixelMap(PDStream pdStream) 
    Standard constructor. Basically does nothing.
    Parameters:
    pdStream - The stream that holds the pixel map.
Method from org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap Summary:
getDecodeParams,   getPredictor,   getRGBImage,   write2OutputStream
Methods from org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage:
getBitsPerComponent,   getColorSpace,   getHeight,   getImageMask,   getRGBImage,   getSuffix,   getWidth,   setBitsPerComponent,   setColorSpace,   setGraphicsState,   setHeight,   setWidth,   write2OutputStream,   write2file,   write2file
Methods from org.apache.pdfbox.pdmodel.graphics.xobject.PDXObject:
createXObject,   getCOSObject,   getCOSStream,   getMetadata,   getPDStream,   setMetadata
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap Detail:
 public COSDictionary getDecodeParams() 
    DecodeParms is an optional parameter for filters. It is provided if any of the filters has nondefault parameters. If there is only one filter it is a dictionary, if there are multiple filters it is an array with an entry for each filter. An array entry can hold a null value if only the default values are used or a dictionary with parameters.
 public int getPredictor() 
    A code that selects the predictor algorithm.
    • 1 No prediction (the default value)
    • 2 TIFF Predictor 2
    • 10 PNG prediction (on encoding, PNG None on all rows)
    • 11 PNG prediction (on encoding, PNG Sub on all rows)
    • 12 PNG prediction (on encoding, PNG Up on all rows)
    • 13 PNG prediction (on encoding, PNG Average on all rows)
    • 14 PNG prediction (on encoding, PNG Paeth on all rows)
    • 15 PNG prediction (on encoding, PNG optimum)
    Default value: 1.
 public BufferedImage getRGBImage() throws IOException 
 public  void write2OutputStream(OutputStream out) throws IOException 
    Writes the image as .png. {@inheritDoc}