org.freehep.graphicsio.gif
Class GIFEncoder

java.lang.Object
  extended by org.freehep.graphicsio.gif.ImageEncoder
      extended by org.freehep.graphicsio.gif.GIFEncoder
All Implemented Interfaces:
java.awt.image.ImageConsumer

public class GIFEncoder
extends ImageEncoder


Field Summary
 
Fields inherited from class org.freehep.graphicsio.gif.ImageEncoder
out, props
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
GIFEncoder(java.awt.Image img, java.io.DataOutput dos)
           
GIFEncoder(java.awt.Image img, java.io.DataOutput dos, boolean interlace)
           
GIFEncoder(java.awt.Image img, java.io.OutputStream out)
           
GIFEncoder(java.awt.Image img, java.io.OutputStream out, boolean interlace)
           
GIFEncoder(java.awt.image.ImageProducer prod, java.io.DataOutput dos)
           
GIFEncoder(java.awt.image.ImageProducer prod, java.io.DataOutput dos, boolean interlace)
           
GIFEncoder(java.awt.image.ImageProducer prod, java.io.OutputStream out)
           
GIFEncoder(java.awt.image.ImageProducer prod, java.io.OutputStream out, boolean interlace)
           
 
Method Summary
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)
           
 void setComment(java.lang.String comment)
           
 
Methods inherited from class org.freehep.graphicsio.gif.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

GIFEncoder

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

GIFEncoder

public GIFEncoder(java.awt.Image img,
                  java.io.DataOutput dos)
           throws java.io.IOException
Throws:
java.io.IOException

GIFEncoder

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

GIFEncoder

public GIFEncoder(java.awt.Image img,
                  java.io.DataOutput dos,
                  boolean interlace)
           throws java.io.IOException
Throws:
java.io.IOException

GIFEncoder

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

GIFEncoder

public GIFEncoder(java.awt.image.ImageProducer prod,
                  java.io.DataOutput dos)
           throws java.io.IOException
Throws:
java.io.IOException

GIFEncoder

public GIFEncoder(java.awt.image.ImageProducer prod,
                  java.io.OutputStream out,
                  boolean interlace)
           throws java.io.IOException
Throws:
java.io.IOException

GIFEncoder

public GIFEncoder(java.awt.image.ImageProducer prod,
                  java.io.DataOutput dos,
                  boolean interlace)
           throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setComment

public void setComment(java.lang.String comment)

encodeStart

protected void encodeStart(int width,
                           int height)
                    throws java.io.IOException
Specified by:
encodeStart in class ImageEncoder
Throws:
java.io.IOException

encodePixels

protected void encodePixels(int x,
                            int y,
                            int w,
                            int h,
                            int[] rgbPixels,
                            int off,
                            int scansize)
                     throws java.io.IOException
Specified by:
encodePixels in class ImageEncoder
Throws:
java.io.IOException

encodeDone

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


Copyright © 2000-2007 FreeHEP. All Rights Reserved.