public class PPMEncoder extends ImageEncoder
out, propsCOMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT| Constructor and Description | 
|---|
| PPMEncoder(Image img,
          DataOutput dos) | 
| PPMEncoder(Image img,
          OutputStream out) | 
| PPMEncoder(ImageProducer prod,
          DataOutput dos) | 
| PPMEncoder(ImageProducer prod,
          OutputStream out) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addComment(String comment) | 
| protected void | encodeDone() | 
| protected void | encodePixels(int x,
            int y,
            int w,
            int h,
            int[] rgbPixels,
            int off,
            int scansize) | 
| protected void | encodeStart(int width,
           int height) | 
encode, imageComplete, setColorModel, setDimensions, setHints, setPixels, setPixels, setPropertiespublic PPMEncoder(Image img, OutputStream out) throws IOException
IOExceptionpublic PPMEncoder(Image img, DataOutput dos) throws IOException
IOExceptionpublic PPMEncoder(ImageProducer prod, OutputStream out) throws IOException
IOExceptionpublic PPMEncoder(ImageProducer prod, DataOutput dos) throws IOException
IOExceptionpublic void addComment(String comment)
protected void encodeStart(int width,
               int height)
                    throws IOException
encodeStart in class ImageEncoderIOExceptionprotected void encodePixels(int x,
                int y,
                int w,
                int h,
                int[] rgbPixels,
                int off,
                int scansize)
                     throws IOException
encodePixels in class ImageEncoderIOExceptionprotected void encodeDone()
                   throws IOException
encodeDone in class ImageEncoderIOExceptionCopyright © 2014. All rights reserved.