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

Update ImagePattern to apply SVG pattern transforms

    Details

    • Type: Enhancement
    • Status: In Progress
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx15
    • Fix Version/s: openjfx16
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web
    • Understanding:
      Fix Understood

      Description

      1. Add a patternTransform attribute to com.sun.prism.paint.ImagePattern, similar to gradientTransform in com.sun.prism.paint.Gradient
      2. Modify drawPattern() to create ImagePattern with patternTransform.

      Sample HTML content:
      <svg>
          <pattern id="pattern" x="0" y="0" width="25" height="25"
                   patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
              <rect x="0" y="0" width="20" height="20"/>
          </pattern>

          <rect x="10" y="10" width="100" height="100" fill="url(#pattern)" />
      </svg>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ajoseph Arun Joseph
                Reporter:
                ajoseph Arun Joseph
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: