FreeHEP API
Version current

org.freehep.graphicsio.ppm
Class PPMEncoder

java.lang.Object
  extended byorg.freehep.graphicsio.ppm.ImageEncoder
      extended byorg.freehep.graphicsio.ppm.PPMEncoder
All Implemented Interfaces:
ImageConsumer

public class PPMEncoder
extends ImageEncoder

Source Code:
PPMEncoder.java

Field Summary
 
Fields inherited from class org.freehep.graphicsio.ppm.ImageEncoder
out
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
PPMEncoder(Image img, DataOutput dos)
           
PPMEncoder(Image img, OutputStream out)
           
PPMEncoder(ImageProducer prod, DataOutput dos)
           
PPMEncoder(ImageProducer prod, OutputStream out)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.freehep.graphicsio.ppm.ImageEncoder
encode, imageComplete, setColorModel, setDimensions, setHints, setPixels, setPixels, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPMEncoder

public PPMEncoder(Image img,
                  OutputStream out)
           throws IOException

PPMEncoder

public PPMEncoder(Image img,
                  DataOutput dos)
           throws IOException

PPMEncoder

public PPMEncoder(ImageProducer prod,
                  OutputStream out)
           throws IOException

PPMEncoder

public PPMEncoder(ImageProducer prod,
                  DataOutput dos)
           throws IOException
Method Detail

addComment

public void addComment(String comment)

encodeStart

protected void encodeStart(int width,
                           int height)
                    throws IOException
Specified by:
encodeStart in class ImageEncoder
Throws:
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
Throws:
IOException

encodeDone

protected void encodeDone()
                   throws IOException
Specified by:
encodeDone in class ImageEncoder
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.