-
Bug
-
Resolution: Not an Issue
-
P3
-
7u6
Position of image in ImagePattern should be related to the upper left corner of the shape. But when you make ImagePattern non-proportional position of image becomes related to some other coordinates, that I can't figure out. In case of using with Text position of image is wrong in both proportional and non-proportional.
See attachments for example.
Download ImagePatternTilingApp.java and square.png.
Set path to square.png n line 50.
Run application. Uncheck Proportional checkbox. And move slider to the right until it stops. Now size of image is 3 times bigger then size of circle. And it should be fully black. But it isn't because image position is related to some weird coordinates.
The same is for Text. Select TEXT in combobox and do the same as in previous clause. Also try with proportional checkbox checked. In case of text it works only in j2d renderring mode.
See attachments for example.
Download ImagePatternTilingApp.java and square.png.
Set path to square.png n line 50.
Run application. Uncheck Proportional checkbox. And move slider to the right until it stops. Now size of image is 3 times bigger then size of circle. And it should be fully black. But it isn't because image position is related to some weird coordinates.
The same is for Text. Select TEXT in combobox and do the same as in previous clause. Also try with proportional checkbox checked. In case of text it works only in j2d renderring mode.
- duplicates
-
JDK-8117814 ImagePattern descends when using constructors with center coordinates.
-
- Closed
-
- relates to
-
JDK-8126501 ImagePattern JavaDocs are confusing.
-
- Resolved
-
-
JDK-8126926 ImagePattern Docs: explain that anchor rect is in local coordinates when proportional is false
-
- Closed
-