-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.1.4, 1.1.5
-
sparc
-
solaris_2.5.1
Using drawImage(Image, int, int, int, int, ImageObserver) to render an image will ignore the current clipping rect if the image has transparency and it is drawn at a scaled size.
A test program is attached that illustrates this behaviour.
The workaround appears to be to compute the intersection of the image and the clipping rect and use drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver) to render only that region of the image that is within the clipping rect... however, this is non-trivial and a royal pain to implement each time you need to render.
A test program is attached that illustrates this behaviour.
The workaround appears to be to compute the intersection of the image and the clipping rect and use drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver) to render only that region of the image that is within the clipping rect... however, this is non-trivial and a royal pain to implement each time you need to render.
- duplicates
-
JDK-4116212 Transparent scaled images ignore the clip rectangle (JDK1.1 only, Solaris ONLY)
- Closed