j2d.io.gif.gifAnimation
Class DirectGif89Frame
java.lang.Object
j2d.io.gif.gifAnimation.Gif89Frame
j2d.io.gif.gifAnimation.DirectGif89Frame
public class DirectGif89Frame
- extends Gif89Frame
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.
- Version:
- 0.90 beta (15-Jul-2000)
- Author:
- J. M. G. Elliott (tep@jmge.net)
- See Also:
Gif89Encoder
,
Gif89Frame
,
IndexGif89Frame
Constructor Summary |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectGif89Frame
public DirectGif89Frame(java.awt.Image img)
throws java.io.IOException
- Construct an DirectGif89Frame from a Java image.
- Parameters:
img
- A java.awt.Image object that supports pixel-grabbing.
- Throws:
java.io.IOException
- If the image is unencodable due to failure of pixel-grabbing.
DirectGif89Frame
public DirectGif89Frame(int width,
int height,
int[] argb_pixels)
- Construct an DirectGif89Frame from ARGB pixel data.
- Parameters:
width
- Width of the bitmap.height
- Height of the bitmap.argb_pixels
- Array containing affineTransform least width*height pixels in the format returned by
java.awt.Color.getRGB().