Package org.jrobin.graph
Class GifEncoder
- java.lang.Object
-
- org.jrobin.graph.GifEncoder
-
class GifEncoder extends Object
-
-
Constructor Summary
Constructors Constructor Description GifEncoder()
GifEncoder(Color[] colors)
GifEncoder(Color[] colors, int width, int height, byte[] ci_pixels)
GifEncoder(Image static_image)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addFrame(int width, int height, byte[] ci_pixels)
(package private) void
addFrame(Image image)
(package private) void
addFrame(Gif89Frame gf)
(package private) void
encode(OutputStream out)
(package private) Gif89Frame
getFrameAt(int index)
(package private) int
getFrameCount()
(package private) void
insertFrame(int index, Gif89Frame gf)
(package private) void
setComments(String comments)
(package private) void
setLogicalDisplay(Dimension dim, int background)
(package private) void
setLoopCount(int count)
(package private) void
setTransparentIndex(int index)
(package private) void
setUniformDelay(int interval)
-
-
-
Constructor Detail
-
GifEncoder
GifEncoder()
-
GifEncoder
GifEncoder(Image static_image) throws IOException
- Throws:
IOException
-
GifEncoder
GifEncoder(Color[] colors)
-
GifEncoder
GifEncoder(Color[] colors, int width, int height, byte[] ci_pixels) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getFrameCount
int getFrameCount()
-
getFrameAt
Gif89Frame getFrameAt(int index)
-
addFrame
void addFrame(Gif89Frame gf) throws IOException
- Throws:
IOException
-
addFrame
void addFrame(Image image) throws IOException
- Throws:
IOException
-
addFrame
void addFrame(int width, int height, byte[] ci_pixels) throws IOException
- Throws:
IOException
-
insertFrame
void insertFrame(int index, Gif89Frame gf) throws IOException
- Throws:
IOException
-
setTransparentIndex
void setTransparentIndex(int index)
-
setLogicalDisplay
void setLogicalDisplay(Dimension dim, int background)
-
setLoopCount
void setLoopCount(int count)
-
setComments
void setComments(String comments)
-
setUniformDelay
void setUniformDelay(int interval)
-
encode
void encode(OutputStream out) throws IOException
- Throws:
IOException
-
-