Remove Smoothing, PixelOffset and Interpolation Settings for Adorners, as they Presumably are not Needed

This commit is contained in:
jklingen 2020-07-03 21:33:46 +02:00
commit 7c5e9a8274
2 changed files with 0 additions and 6 deletions

View file

@ -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
{

View file

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