net.jmge.gif
Class DirectGif89Frame
public class DirectGif89Frame
Instances of this Gif89Frame subclass are constructed from RGB image info,
either in the form of an Image object or a pixel array.
There is an important restriction to note. It is only permissible to add
DirectGif89Frame objects to a Gif89Encoder constructed without an explicit
color map. The GIF color table will be automatically generated from pixel
information.
Gif89Encoder
, Gif89Frame
, IndexGif89Frame
DirectGif89Frame(Image img) - Construct an DirectGif89Frame from a Java image.
|
DirectGif89Frame(int width, int height, argb_pixels[] ) - Construct an DirectGif89Frame from ARGB pixel data.
|
DirectGif89Frame
public DirectGif89Frame(Image img)
throws IOException
Construct an DirectGif89Frame from a Java image.
img
- A java.awt.Image object that supports pixel-grabbing.
DirectGif89Frame
public DirectGif89Frame(int width,
int height,
argb_pixels[] )
Construct an DirectGif89Frame from ARGB pixel data.
width
- Width of the bitmap.height
- Height of the bitmap.