From 33cf68c1c70c4e4e1d6f6a945d304661825c3b1f Mon Sep 17 00:00:00 2001 From: Nick Vella Date: Thu, 16 May 2019 18:36:27 +1000 Subject: [PATCH] dpi: scale UpdateWeblogProgressForm with ScaleBitmap --- .../UpdateWeblogProgressForm.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/managed/OpenLiveWriter.PostEditor/UpdateWeblogProgressForm.cs b/src/managed/OpenLiveWriter.PostEditor/UpdateWeblogProgressForm.cs index 1bdb0a99..f517a407 100644 --- a/src/managed/OpenLiveWriter.PostEditor/UpdateWeblogProgressForm.cs +++ b/src/managed/OpenLiveWriter.PostEditor/UpdateWeblogProgressForm.cs @@ -274,12 +274,10 @@ namespace OpenLiveWriter.PostEditor for (int i = 1; i <= 26; i++) { string resourceName = String.Format(CultureInfo.InvariantCulture, "Images.PublishAnimation.post{0:00}.png", i); - var originalBmp = ResourceHelper.LoadAssemblyResourceBitmap(resourceName); - var newBmp = new Bitmap( - originalBmp, - new Size((int)DisplayHelper.ScaleX(originalBmp.Size.Width), (int)DisplayHelper.ScaleY(originalBmp.Size.Height)) - ); - list.Add(originalBmp); + // Add the scaled animation frame bitmap + list.Add( + DisplayHelper.ScaleBitmap(ResourceHelper.LoadAssemblyResourceBitmap(resourceName)) + ); } _animationBitmaps = (Bitmap[])list.ToArray(typeof(Bitmap)); }