Ejemplo n.º 1
0
 private static void AddFrame(AnimatedGifCreator gif, SKImageInfo info, Action <SKCanvas> action)
 {
     using var surface = SKSurface.Create(info);
     action(surface.Canvas);
     using SKImage image = surface.Snapshot();
     using var bitmap    = image.ToBitmap();
     gif.AddFrame(bitmap, quality: GifQuality.Bit8);
 }