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

Graphics.getClipBounds/getClip return difference nonequivalent bounds, depending from transform.

XMLWordPrintable

    • 2d
    • b100
    • Verified

        Graphics.getClipBounds/getClip internally uses transformShape/untransformShape which are not symmetric in some cases.
        Also getClipBounds() sometimes uses usrClip directly(if usrClip is a Rectangle) and sometimes uses getBounds(). But getBounds() returns empty Rectangle if width and height is negative.

        This caused jck failure, if default graphics transform is not an identity.

              serb Sergey Bylokhov
              serb Sergey Bylokhov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: