Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8165032

Rendering artifacts when using Polygon with many points in small area on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7, 8, 9
    • client-libs

      When we are attempting to render a line chart using a Polygon with around 11,000 points in an area around 60 pixels wide with anti-aliasing enabled we get some rendering artifacts. It seems to be extending certain segments further along the x-axis. The exact shape of the artifacts depend somewhat on the exact distribution of the data points along the small area, but they are usually of the same form.

      Artifacts of the same nature are seen when using a Path2D with similar density of paths to pixels.

      Using several small objects like Line2D objects for each individual line doesn't cause those rendering issues.

        1. Test.java
          1 kB
        2. largePolygon
          81 kB
        3. full-chart.PNG
          full-chart.PNG
          4 kB
        4. chart-detail.PNG
          chart-detail.PNG
          6 kB
        5. artifacts.PNG
          artifacts.PNG
          0.3 kB

            Unassigned Unassigned
            hdafgard Henrik Dafgård
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: