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

SVG and canvas pattern transforms are not applied correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • tbd
    • jfx15
    • javafx
    • web

      fillPath() and fillRect() functions in GraphicsContextJava.cpp use Image::drawPattern() for applying patterns as fill attribute. But drawPattern() doesn't use patternTransform argument and thus, the final image won't be transformed.

      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>

            hmeda Hima Bindu Meda
            ajoseph Arun Joseph (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: