Catalano.Imaging.Parsers
Class GifEncoder
- java.lang.Object
-
- Catalano.Imaging.Parsers.GifEncoder
-
public class GifEncoder extends java.lang.ObjectGIF Animated Encoder.
-
-
Constructor Summary
Constructors Constructor and Description GifEncoder(java.lang.String saveToFile)Initializes a new instance of the GifEncoder class.GifEncoder(java.lang.String saveToFile, int milliseconds)Path where the file will be saved.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddFrame(FastBitmap fastBitmap)Add frame in the sequence.voidfinish()End the sequence and save the animated gif.
-
-
-
Constructor Detail
-
GifEncoder
public GifEncoder(java.lang.String saveToFile)
Initializes a new instance of the GifEncoder class.- Parameters:
saveToFile- Path where the file will be saved.
-
GifEncoder
public GifEncoder(java.lang.String saveToFile, int milliseconds)Path where the file will be saved.- Parameters:
saveToFile- Path where the file will be saved.milliseconds- Milliseconds between the frames.
-
-
Method Detail
-
addFrame
public void addFrame(FastBitmap fastBitmap)
Add frame in the sequence.- Parameters:
fastBitmap- Image.
-
finish
public void finish()
End the sequence and save the animated gif.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG