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

ImagePattern: Wrong choice of image position

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 7u6
    • 7u6
    • javafx

      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.

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

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

              Created:
              Updated:
              Resolved:
              Imported: