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

ImagePattern: Wrong choice of image position

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7u6
    • Fix Version/s: 7u6
    • Component/s: javafx
    • Labels:

      Description

      Position of image in ImagePattern should be related to the upper left corner of the shape. But when you make ImagePattern non-proportional position of image becomes related to some other coordinates, that I can't figure out. In case of using with Text position of image is wrong in both proportional and non-proportional.
      See attachments for example.
      Download ImagePatternTilingApp.java and square.png.
      Set path to square.png n line 50.
      Run application. Uncheck Proportional checkbox. And move slider to the right until it stops. Now size of image is 3 times bigger then size of circle. And it should be fully black. But it isn't because image position is related to some weird coordinates.
      The same is for Text. Select TEXT in combobox and do the same as in previous clause. Also try with proportional checkbox checked. In case of text it works only in j2d renderring mode.

        Attachments

        1. bug_nonproportional_ellipse.png
          bug_nonproportional_ellipse.png
          20 kB
        2. bug_nonproportional_text.png
          bug_nonproportional_text.png
          19 kB
        3. bug_proportional_text.png
          bug_proportional_text.png
          17 kB
        4. bug.png
          bug.png
          21 kB
        5. ImagePatternNonproportionalBug.zip
          89 kB
        6. ImagePatternTilingApp.java
          7 kB
        7. square.png
          square.png
          0.3 kB

          Issue Links

            Activity

              People

              • Assignee:
                jandrese Joe Andresen (Inactive)
                Reporter:
                asakharu Aleksandr Sakharuk (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: