Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

echopoint.image
Class GifEncoder  view GifEncoder download GifEncoder.java

java.lang.Object
  extended byechopoint.image.GifEncoder
All Implemented Interfaces:
ImageEncoder, java.io.Serializable

public class GifEncoder
extends java.lang.Object
implements ImageEncoder, java.io.Serializable

GifEncoder implements the ImageEncoder interface and hence can take a java.awt.Image object and encode it as a GIF output stream. It also handles alpha transparency in the source image.


Constructor Summary
GifEncoder()
          Constructs a GifEncoder ready to start encoding
 
Method Summary
 void encode(java.awt.Image image, java.io.OutputStream out)
           
 java.lang.String getContentType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GifEncoder

public GifEncoder()
Constructs a GifEncoder ready to start encoding

Method Detail

encode

public void encode(java.awt.Image image,
                   java.io.OutputStream out)
            throws java.io.IOException
Specified by:
encode in interface ImageEncoder

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface ImageEncoder