Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## echopointng.image
Class GifEncoder

    java.lang.Object
      echopointng.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.

See Also:
  Serialized Form

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`
  Throws:
    `java.io.IOException`
  See Also:
    `ImageEncoder.encode(java.awt.Image, java.io.OutputStream)`

### getContentType

    public java.lang.String getContentType()

  Specified by:
    `getContentType` in interface `ImageEncoder`
  See Also:
    `ImageEncoder.getContentType()`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD