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

[Canvas] GraphicsContext.{fill/stroke}Poly{line/gon}() methods do not flush transform

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:

      Description

      GraphicsContext will use the current transform for the locations of the points when it renders a polygon or polyline, but it will not apply that transform to the rendering attributes like the stroke and the paint (mainly the location of the endpoints of the gradients).

      The two figures in the attached test case should look identical, but the first one (without the workaround) has a thinner stroke width and the gradient repeats several times through its bounds rather than covering the bounds in a single pass.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                flar Jim Graham
                Reporter:
                flar Jim Graham
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Imported: