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
  • Constructor Details

    • GifEncoder

      public GifEncoder()
  • Method Details

    • saveGif

      public static void saveGif(String filePath, List<BufferedImage> images)
      images saved as GIF file, repeated countless times with 100ms delay
      Parameters:
      filePath - GIF file path
      images - Multiple BufferedImages for Chart
    • saveGif

      public static void saveGif(String filePath, List<BufferedImage> images, int repeat, int delay)
      images saved as GIF file, Set repeat times and delay time
      Parameters:
      filePath - GIF file path
      images - Multiple BufferedImages for Chart
      repeat - repeat times, less than 0 does not repeat,0 countless times
      delay - delay time in milliseconds