FreeHEP API
Version current

org.freehep.graphicsio.gif
Class GIFEncoder

java.lang.Object
  extended byorg.freehep.graphicsio.gif.ImageEncoder
      extended byorg.freehep.graphicsio.gif.GIFEncoder
All Implemented Interfaces:
ImageConsumer

public class GIFEncoder
extends ImageEncoder

Source Code:
GIFEncoder.java

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

GIFEncoder

public GIFEncoder(Image img,
                  DataOutput dos)
           throws IOException

GIFEncoder

public GIFEncoder(Image img,
                  OutputStream out,
                  boolean interlace)
           throws IOException

GIFEncoder

public GIFEncoder(Image img,
                  DataOutput dos,
                  boolean interlace)
           throws IOException

GIFEncoder

public GIFEncoder(ImageProducer prod,
                  OutputStream out)
           throws IOException

GIFEncoder

public GIFEncoder(ImageProducer prod,
                  DataOutput dos)
           throws IOException

GIFEncoder

public GIFEncoder(ImageProducer prod,
                  OutputStream out,
                  boolean interlace)
           throws IOException

GIFEncoder

public GIFEncoder(ImageProducer prod,
                  DataOutput dos,
                  boolean interlace)
           throws IOException
Method Detail

setComment

public void setComment(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.