From e8c833fef032f32ea9c2bb4d3293279d31fe50e7 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 27 Sep 2017 13:53:39 +0200 Subject: [PATCH] A bit more cosmetics in image scaling --- Logic/Support/DocumentImage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Logic/Support/DocumentImage.cs b/Logic/Support/DocumentImage.cs index 1682921f..a32caabe 100644 --- a/Logic/Support/DocumentImage.cs +++ b/Logic/Support/DocumentImage.cs @@ -48,6 +48,9 @@ namespace Swarmops.Logic.Support using (Graphics g = Graphics.FromImage(newImage)) { + g.SmoothingMode = SmoothingMode.HighQuality; + g.InterpolationMode = InterpolationMode.HighQualityBicubic; + g.PixelOffsetMode = PixelOffsetMode.HighQuality; g.CompositingQuality = CompositingQuality.HighQuality; g.DrawImage(image, 0, 0, newWidth, newHeight); }