From 48c2a913368bb4641c2b2ff192bb4d95c166ec69 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Sun, 24 Dec 2017 19:33:59 +0000 Subject: [PATCH] Ensure extact half full renders a pixel It can end up missing some pixels if they happen to fill exactly half the pixel --- src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs b/src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs index d307e67d5..b6ef4be21 100644 --- a/src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs +++ b/src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs @@ -176,7 +176,7 @@ namespace SixLabors.ImageSharp.Drawing.Processors { for (int x = 0; x < scanlineWidth; x++) { - if (scanline[x] > 0.5) + if (scanline[x] >= 0.5) { scanline[x] = 1; }