From 7c5e9a827499c74965351b09d00a30466c66a496 Mon Sep 17 00:00:00 2001 From: jklingen Date: Fri, 3 Jul 2020 21:33:46 +0200 Subject: [PATCH] Remove Smoothing, PixelOffset and Interpolation Settings for Adorners, as they Presumably are not Needed --- Greenshot/Drawing/Adorners/MoveAdorner.cs | 3 --- Greenshot/Drawing/Adorners/ResizeAdorner.cs | 3 --- 2 files changed, 6 deletions(-) diff --git a/Greenshot/Drawing/Adorners/MoveAdorner.cs b/Greenshot/Drawing/Adorners/MoveAdorner.cs index 1eee0c832..916d569f4 100644 --- a/Greenshot/Drawing/Adorners/MoveAdorner.cs +++ b/Greenshot/Drawing/Adorners/MoveAdorner.cs @@ -145,10 +145,7 @@ namespace Greenshot.Drawing.Adorners var bounds = BoundsOnSurface; GraphicsState state = targetGraphics.Save(); - targetGraphics.SmoothingMode = SmoothingMode.None; targetGraphics.CompositingMode = CompositingMode.SourceCopy; - targetGraphics.PixelOffsetMode = PixelOffsetMode.None; - targetGraphics.InterpolationMode = InterpolationMode.NearestNeighbor; try { diff --git a/Greenshot/Drawing/Adorners/ResizeAdorner.cs b/Greenshot/Drawing/Adorners/ResizeAdorner.cs index 836e65007..d624add48 100644 --- a/Greenshot/Drawing/Adorners/ResizeAdorner.cs +++ b/Greenshot/Drawing/Adorners/ResizeAdorner.cs @@ -172,10 +172,7 @@ namespace Greenshot.Drawing.Adorners var bounds = BoundsOnSurface; GraphicsState state = targetGraphics.Save(); - targetGraphics.SmoothingMode = SmoothingMode.None; targetGraphics.CompositingMode = CompositingMode.SourceCopy; - targetGraphics.PixelOffsetMode = PixelOffsetMode.None; - targetGraphics.InterpolationMode = InterpolationMode.NearestNeighbor; targetGraphics.FillRectangle(Brushes.Black, bounds); targetGraphics.DrawRectangle(new Pen(Brushes.White), bounds);