ImageSharp.Drawing icon indicating copy to clipboard operation
ImageSharp.Drawing copied to clipboard

Rasterizing artifacts when drawing large and complex polygons

Open antonfirsov opened this issue 5 years ago • 1 comments

Prerequisites

  • [x] I have written a descriptive issue title
  • [x] I have verified that I am running the latest version of ImageSharp.Drawing
  • [x] I have verified if the problem exist in both DEBUG and RELEASE mode
  • [x] I have searched open and closed issues to ensure it has not already been reported

Description

Although rendering is less prone to floating point accuracy issues since #96, it's still possible to stress it to produce unwanted artifacts. It might be a logical corner case unhandled by PolygonScanner instead of a numeric issue.

Steps to Reproduce

Enable and run DrawingRobustnessTests.LargeGeoJson_Lines.

The output has artifacts: https://user-images.githubusercontent.com/6835152/97231127-5538e200-17db-11eb-9aec-e305a41b0e37.png

System Configuration

  • ImageSharp.Drawing version: current master
  • Other ImageSharp packages and versions: -
  • Environment (Operating system, version and so on): all
  • .NET Framework version: all
  • Additional information: -

antonfirsov avatar Nov 20 '20 19:11 antonfirsov

I believe this is a low impact edge case. We won't be able to address it for 1.0.

antonfirsov avatar Jun 19 '21 22:06 antonfirsov