Exemple #1
0
 public static void Save(this IBitmap <Rgba32> bitmap, System.IO.Stream stream, IImageEncoder encoder)
 {
     using (var img = bitmap.ToImageSharp())
     {
         img.Save(stream, encoder);
     }
 }
Exemple #2
0
 public static void Save(this IBitmap <Rgba32> bitmap, string filePath)
 {
     using (var img = bitmap.ToImageSharp())
     {
         img.Save(filePath);
     }
 }