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

Shape.contains() returns bad values on a stroked Ellipse2D

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 5.0
    • client-libs
    • None
    • 2d
    • x86
    • windows_xp

      The attached program creates an Ellipse2D, uses BasicStroke.createStrokedShape() to generate an outline path.
      This path is queried using the Shape.contains() method at every point in the window, and each point is colored according to the return value. Ideally the ellipse would be entirely green and the outside region would be entriely magenta; note that points along two lines receive incorrect values.

            avu Alexey Ushakov
            dricesunw Daniel Rice (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: