public class AnimatedGifEncoder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closeStream |
protected int |
colorDepth |
protected byte[] |
colorTab |
protected int |
delay |
protected int |
dispose |
protected boolean |
firstFrame |
protected int |
height |
protected BufferedImage |
image |
protected byte[] |
indexedPixels |
protected OutputStream |
out |
protected int |
palSize |
protected byte[] |
pixels |
protected int |
repeat |
protected int |
sample |
protected boolean |
sizeSet |
protected boolean |
started |
protected int |
transIndex |
protected Color |
transparent |
protected boolean[] |
usedEntry |
protected int |
width |
| Constructor and Description |
|---|
AnimatedGifEncoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFrame(BufferedImage im) |
protected void |
analyzePixels() |
protected int |
findClosest(Color c) |
boolean |
finish() |
protected void |
getImagePixels() |
void |
setDelay(int ms) |
void |
setDispose(int code) |
void |
setFrameRate(float fps) |
void |
setQuality(int quality) |
void |
setRepeat(int iter) |
void |
setSize(int w,
int h) |
void |
setTransparent(Color c) |
boolean |
start(OutputStream os) |
boolean |
start(String file) |
protected void |
writeGraphicCtrlExt() |
protected void |
writeImageDesc() |
protected void |
writeLSD() |
protected void |
writeNetscapeExt() |
protected void |
writePalette() |
protected void |
writePixels() |
protected void |
writeShort(int value) |
protected void |
writeString(String s) |
protected int width
protected int height
protected Color transparent
protected int transIndex
protected int repeat
protected int delay
protected boolean started
protected OutputStream out
protected BufferedImage image
protected byte[] pixels
protected byte[] indexedPixels
protected int colorDepth
protected byte[] colorTab
protected boolean[] usedEntry
protected int palSize
protected int dispose
protected boolean closeStream
protected boolean firstFrame
protected boolean sizeSet
protected int sample
public void setDelay(int ms)
public void setDispose(int code)
public void setRepeat(int iter)
public void setTransparent(Color c)
public boolean addFrame(BufferedImage im)
public boolean finish()
public void setFrameRate(float fps)
public void setQuality(int quality)
public void setSize(int w,
int h)
public boolean start(OutputStream os)
public boolean start(String file)
protected void analyzePixels()
protected int findClosest(Color c)
protected void getImagePixels()
protected void writeGraphicCtrlExt()
throws IOException
IOExceptionprotected void writeImageDesc()
throws IOException
IOExceptionprotected void writeLSD()
throws IOException
IOExceptionprotected void writeNetscapeExt()
throws IOException
IOExceptionprotected void writePalette()
throws IOException
IOExceptionprotected void writePixels()
throws IOException
IOExceptionprotected void writeShort(int value)
throws IOException
IOExceptionprotected void writeString(String s) throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.