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

Update ImagePattern to apply SVG pattern transforms

XMLWordPrintable

    • web

        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>

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

                Created:
                Updated:
                Resolved: