java.lang.Object
echopoint.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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GifEncoder
public GifEncoder()
- Constructs a GifEncoder ready to start encoding
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