Browse Source

Ensure extact half full renders a pixel

It can end up missing some pixels if they happen to fill exactly half the pixel
pull/414/head
Scott Williams 9 years ago
parent
commit
a20385523a
  1. 2
      src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs

2
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;
}

Loading…
Cancel
Save