Skip to content

Commit

Permalink
modified display format from bmp to png
Browse files Browse the repository at this point in the history
  • Loading branch information
davipk committed May 4, 2019
1 parent cc11dfe commit 06b64e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions HaRepacker/Converter/BitmapToImageSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public static BitmapSource ToWpfBitmap(this System.Drawing.Bitmap bitmap)
{
using (MemoryStream stream = new MemoryStream())
{
bitmap.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp);

bitmap.Save(stream, System.Drawing.Imaging.ImageFormat.Png);
stream.Position = 0;
BitmapImage result = new BitmapImage();
result.BeginInit();
Expand Down

0 comments on commit 06b64e0

Please sign in to comment.