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