SetQuality() public method

public SetQuality ( int quality ) : void
quality int
return void
示例#1
0
 public static void OutputGIF(Bitmap f, String fn)
 {
     GifEncoder gif = new GifEncoder();
     gif.SetQuality(4);
     gif.Start(fn);
     gif.AddFrame(f);
     gif.Finish();
 }
示例#2
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();
 }