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>
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>
- relates to
-
JDK-8242861 Update ImagePattern to apply SVG pattern transforms
- Resolved