MSIT.NGif.GifEncoder.SetDelay C# (CSharp) Method

SetDelay() public method

public SetDelay ( int ms ) : void
ms int
return void
        public void SetDelay(int ms)
        {
            _delay = ms/10;
        }

Usage Example

Example #1
0
 public static void OutputAGIF(IEnumerable<Frame> frames, String fn)
 {
     frames = frames.OrderBy(f => f.Number);
     GifEncoder gif = new GifEncoder();
     gif.SetQuality(4);
     gif.SetRepeat(0);
     gif.Start(fn);
     foreach (Frame f in frames) {
         gif.SetDelay(f.Delay);
         gif.AddFrame(f.Image);
     }
     gif.Finish();
 }