Package org.knowm.xchart
Class GifEncoder
java.lang.Object
org.knowm.xchart.GifEncoder
public class GifEncoder extends Object
A helper class with static methods for saving Charts as a GIF file
- Author:
- Mr14huashao
-
Constructor Summary
Constructors Constructor Description GifEncoder() -
Method Summary
Modifier and Type Method Description static voidsaveGif(String filePath, List<BufferedImage> images)images saved as GIF file, repeated countless times with 100ms delaystatic voidsaveGif(String filePath, List<BufferedImage> images, int repeat, int delay)images saved as GIF file, Set repeat times and delay time
-
Constructor Details
-
GifEncoder
public GifEncoder()
-
-
Method Details
-
saveGif
images saved as GIF file, repeated countless times with 100ms delay- Parameters:
filePath- GIF file pathimages- Multiple BufferedImages for Chart
-
saveGif
images saved as GIF file, Set repeat times and delay time- Parameters:
filePath- GIF file pathimages- Multiple BufferedImages for Chartrepeat- repeat times, less than 0 does not repeat,0 countless timesdelay- delay time in milliseconds
-