Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
yangjieshao committed Mar 30, 2023
1 parent f062c4e commit 07e8cd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/Utils/ImageUtil.NET40.cs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ private static Bitmap ResetDpi(Image image, float xDpi = 96f, float yDpi = 96f,
graphics.SmoothingMode = SmoothingMode.HighQuality;
graphics.CompositingQuality = CompositingQuality.HighQuality;
graphics.Clear(Color.Transparent);
graphics.DrawImage(image, new System.Drawing.Rectangle(0, 0, bitmap.Width, bitmap.Height), new System.Drawing.Rectangle(0, 0, image.Width, image.Height), GraphicsUnit.Pixel);
graphics.DrawImage(image, new System.Drawing.Rectangle(0, 0, bitmap.Width, bitmap.Height)
, new System.Drawing.Rectangle(0, 0, image.Width, image.Height), GraphicsUnit.Pixel);
}

return bitmap;
Expand Down

0 comments on commit 07e8cd9

Please sign in to comment.