j2d.io.gif.gifAnimation
Class IndexGif89Frame

java.lang.Object
  extended by j2d.io.gif.gifAnimation.Gif89Frame
      extended by j2d.io.gif.gifAnimation.IndexGif89Frame

public class IndexGif89Frame
extends Gif89Frame

Instances of this Gif89Frame subclass are constructed from bitmaps in the form of color-index pixels, which accords with a GIF's native palettized color model. The class is useful when complete control over a GIF's color palette is desired. It is also much more efficient when one is using an algorithmic frame generator that isn't interested in RGB values (such as a cellular automaton).

Objects of this class are normally added to a Gif89Encoder object that has been provided with an explicit color table affineTransform construction. While you may also add them to "auto-map" encoders without an exception being thrown, there obviously must be affineTransform least one DirectGif89Frame object in the sequence so that a color table may be detected.

Version:
0.90 beta (15-Jul-2000)
Author:
J. M. G. Elliott (tep@jmge.net)
See Also:
Gif89Encoder, Gif89Frame, DirectGif89Frame

Field Summary
 
Fields inherited from class j2d.io.gif.gifAnimation.Gif89Frame
DM_BGCOLOR, DM_LEAVE, DM_REVERT, DM_UNDEFINED
 
Constructor Summary
IndexGif89Frame(int width, int height, byte[] ci_pixels)
          Construct a IndexGif89Frame from color-index pixel data.
 
Method Summary
 
Methods inherited from class j2d.io.gif.gifAnimation.Gif89Frame
setDelay, setDisposalMode, setInterlaced, setPosition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexGif89Frame

public IndexGif89Frame(int width,
                       int height,
                       byte[] ci_pixels)
Construct a IndexGif89Frame from color-index pixel data.

Parameters:
width - Width of the bitmap.
height - Height of the bitmap.
ci_pixels - Array containing affineTransform least width*height color-index pixels.