From 19d536041803b1d4953f70c06059a9769ef35de9 Mon Sep 17 00:00:00 2001 From: RKrom Date: Mon, 2 Jun 2014 11:51:38 +0200 Subject: [PATCH] Removed scaling from Transform in the ImageContainer, this is already implemented by drawing to the "new" width/height and doesn't loose information. --- Greenshot/Drawing/ImageContainer.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Greenshot/Drawing/ImageContainer.cs b/Greenshot/Drawing/ImageContainer.cs index 6f2267f67..d99ae8743 100644 --- a/Greenshot/Drawing/ImageContainer.cs +++ b/Greenshot/Drawing/ImageContainer.cs @@ -155,18 +155,6 @@ namespace Greenshot.Drawing { image = ImageHelper.ApplyEffect(image, new RotateEffect(rotateAngle), tmpMatrix); } } - } else { - float scaleX = CalculateScaleX(matrix); - float scaleY = CalculateScaleY(matrix); - int newWidth = (int)(Width * scaleX); - int newHeight = (int)(Height * scaleY); - if (newWidth != Width || newHeight != Height) { - using (var tmpMatrix = new Matrix()) { - using (Image tmpImage = image) { - image = ImageHelper.ApplyEffect(image, new ResizeEffect(newWidth, newHeight, false), tmpMatrix); - } - } - } } base.Transform(matrix); }