From 2220f41122ccfafb534b6c214b28b513d97dabf0 Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 2 Jun 2014 10:53:18 +0200 Subject: [PATCH] Fixed potential issue when multiple effects are used after each other. --- GreenshotPlugin/Core/ImageHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GreenshotPlugin/Core/ImageHelper.cs b/GreenshotPlugin/Core/ImageHelper.cs index d9892f942..33bb9eca9 100644 --- a/GreenshotPlugin/Core/ImageHelper.cs +++ b/GreenshotPlugin/Core/ImageHelper.cs @@ -1377,10 +1377,10 @@ namespace GreenshotPlugin.Core { Image newImage = null; if (maintainAspectRatio && canvasUseNewSize) { newImage = CreateEmpty(newWidth, newHeight, sourceImage.PixelFormat, backgroundColor, sourceImage.HorizontalResolution, sourceImage.VerticalResolution); - matrix.Scale((float)newWidth / sourceImage.Width, (float)newHeight / sourceImage.Height); + matrix.Scale((float)newWidth / sourceImage.Width, (float)newHeight / sourceImage.Height, MatrixOrder.Append); } else { newImage = CreateEmpty(destWidth, destHeight, sourceImage.PixelFormat, backgroundColor, sourceImage.HorizontalResolution, sourceImage.VerticalResolution); - matrix.Scale((float)destWidth / sourceImage.Width, (float)destHeight / sourceImage.Height); + matrix.Scale((float)destWidth / sourceImage.Width, (float)destHeight / sourceImage.Height, MatrixOrder.Append); } using (Graphics graphics = Graphics.FromImage(newImage)) {