Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8256021 | 8u291 | Arun Joseph | P4 | Resolved | Fixed | b01 |
JDK-8262213 | jfx11.0.11 | Arun Joseph | P4 | Resolved | Fixed |
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>
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>
- backported by
-
JDK-8256021 Update ImagePattern to apply SVG pattern transforms
- Resolved
-
JDK-8262213 Update ImagePattern to apply SVG pattern transforms
- Resolved
- relates to
-
JDK-8242862 SVG and canvas pattern transforms are not applied correctly
- Closed