j2d.io.ppm.Encoders
Class PpmEncoder

java.lang.Object
  extended by j2d.io.ppm.Encoders.ImageEncoder
      extended by j2d.io.ppm.Encoders.PpmEncoder
All Implemented Interfaces:
java.awt.image.ImageConsumer

public class PpmEncoder
extends ImageEncoder


Field Summary
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
PpmEncoder(java.awt.Image img, java.io.OutputStream out)
           
PpmEncoder(java.awt.image.ImageProducer prod, java.io.OutputStream out)
           
 
Method Summary
 void encodeDone()
           
 void encodePixels(int x, int y, int w, int h, int[] rgbPixels, int off, int scansize)
           
 void encodeStart(int width, int height)
           
 
Methods inherited from class j2d.io.ppm.Encoders.ImageEncoder
encode, imageComplete, setColorModel, setDimensions, setHints, setPixels, setPixels, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PpmEncoder

public PpmEncoder(java.awt.Image img,
                  java.io.OutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException

PpmEncoder

public PpmEncoder(java.awt.image.ImageProducer prod,
                  java.io.OutputStream out)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

encodeStart

public void encodeStart(int width,
                        int height)
                 throws java.io.IOException
Throws:
java.io.IOException

encodePixels

public void encodePixels(int x,
                         int y,
                         int w,
                         int h,
                         int[] rgbPixels,
                         int off,
                         int scansize)
                  throws java.io.IOException
Throws:
java.io.IOException

encodeDone

public void encodeDone()
                throws java.io.IOException
Throws:
java.io.IOException