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

Update ImagePattern to apply SVG pattern transforms

    XMLWordPrintable

Details

    • web

    Backports

      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

                ajoseph Arun Joseph (Inactive)
                ajoseph Arun Joseph (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: