j2d.io.ppm.Encoders
Class PpmEncoder
java.lang.Object
j2d.io.ppm.Encoders.ImageEncoder
j2d.io.ppm.Encoders.PpmEncoder
- All Implemented Interfaces:
- java.awt.image.ImageConsumer
public class PpmEncoder
- extends ImageEncoder
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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