From 94b8e3101afef8f72dd8f59211a988421c931fa4 Mon Sep 17 00:00:00 2001 From: JasonLiu Date: Sun, 14 Jan 2024 20:53:30 +0800 Subject: [PATCH] * Improve picture clarity (#987) https://docs.microsoft.com/en-us/dotnet/api/system.drawing.drawing2d.interpolationmode?view=dotnet-plat-ext-6.0 --- Source/Rendering/SvgRenderer.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Rendering/SvgRenderer.cs b/Source/Rendering/SvgRenderer.cs index 7b761b5e2..57bf57912 100644 --- a/Source/Rendering/SvgRenderer.cs +++ b/Source/Rendering/SvgRenderer.cs @@ -135,6 +135,7 @@ private static Graphics CreateGraphics(Image image) g.CompositingQuality = CompositingQuality.HighQuality; g.TextRenderingHint = TextRenderingHint.AntiAlias; g.TextContrast = 1; + g.InterpolationMode = InterpolationMode.NearestNeighbor; return g; }