org.freehep.graphicsio.ppm
Class PPMEncoder
java.lang.Object
|
+--org.freehep.graphicsio.ImageEncoder
|
+--org.freehep.graphicsio.ppm.PPMEncoder
- All Implemented Interfaces:
- ImageConsumer
- public class PPMEncoder
- extends ImageEncoder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PPMEncoder
public PPMEncoder(Image img,
OutputStream out)
throws IOException
PPMEncoder
public PPMEncoder(ImageProducer prod,
OutputStream out)
throws IOException
addComment
public void addComment(String comment)
encodeStart
protected void encodeStart(int width,
int height)
throws IOException
- Specified by:
encodeStart
in class ImageEncoder
IOException
encodePixels
protected void encodePixels(int x,
int y,
int w,
int h,
int[] rgbPixels,
int off,
int scansize)
throws IOException
- Specified by:
encodePixels
in class ImageEncoder
IOException
encodeDone
protected void encodeDone()
throws IOException
- Specified by:
encodeDone
in class ImageEncoder
IOException
Copyright © 2000-2002 FreeHEP, All Rights Reserved.