dpi: scale UpdateWeblogProgressForm with ScaleBitmap

This commit is contained in:
Nick Vella 2019-05-16 18:36:27 +10:00
parent d02e120386
commit 33cf68c1c7
1 changed files with 4 additions and 6 deletions

View File

@ -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));
}