public class DirectGif89Frame extends Gif89Frame
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,
IndexGif89FrameDM_BGCOLOR, DM_LEAVE, DM_REVERT, DM_UNDEFINED| Constructor and Description |
|---|
DirectGif89Frame(java.awt.Image img)
Construct an DirectGif89Frame from a Java image.
|
DirectGif89Frame(int width,
int height,
int[] argb_pixels)
Construct an DirectGif89Frame from ARGB pixel data.
|
setDelay, setDisposalMode, setInterlaced, setPositionpublic DirectGif89Frame(java.awt.Image img)
throws java.io.IOException
img - A java.awt.Image object that supports pixel-grabbing.java.io.IOException - If the image is unencodable due to failure of pixel-grabbing.public DirectGif89Frame(int width,
int height,
int[] argb_pixels)
width - Width of the bitmap.height - Height of the bitmap.argb_pixels - Array containing at least width*height pixels in the format returned by
java.awt.Color.getRGB().