public class GifEncoder extends Object
| Constructor and Description |
|---|
GifEncoder(Image img)
Constructs a new GifEncoder using an 8-bit AWT Image.
|
GifEncoder(int width,
int height,
byte[] pixels,
byte[] r,
byte[] g,
byte[] b)
Constructs a new GifEncoder.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getTransparentPixel() |
void |
setTransparentPixel(int pixel) |
void |
write(OutputStream out)
Saves the image as a GIF file.
|
public GifEncoder(int width,
int height,
byte[] pixels,
byte[] r,
byte[] g,
byte[] b)
width - The image width.height - The image height.pixels - The pixel data.r - The red look-up table.g - The green look-up table.b - The blue look-up table.public GifEncoder(Image img)
public void write(OutputStream out) throws IOException
IOExceptionpublic void setTransparentPixel(int pixel)
public int getTransparentPixel()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.