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
af/merge-core
Scott Williams 8 years ago
parent
commit
48c2a91336
  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