Bug 17060

Summary: AWT: problems with drawImage and transparent images
Product: classpath Reporter: Norman Hendrich <hendrich>
Component: awtAssignee: Thomas Fitzsimmons <fitzsim>
Status: RESOLVED FIXED    
Severity: normal CC: bug-classpath, gcc-bugs, java-prs
Priority: P2    
Version: unspecified   
Target Milestone: pre-0.18   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2005-07-07 13:35:46

Description Norman Hendrich 2004-08-17 08:59:36 UTC
The attached testcase demonstrates incorrect handling of transparent 
images in AWT/GtK.

1. The upper button demonstrates that loading and drawing a transparent image
   almost works. However, while the background color is respected, the red
   line should not be overdrawn by the image.

2. In the second button, libgcj incorrectly uses the (default Gtk)
   background color instead of the expected background.

Download testcase from
tams-www.informatik.uni-hamburg.de/applets/jfig/archive/GcjTransparentImageButton.java
Comment 1 Thomas Fitzsimmons 2004-08-30 18:50:47 UTC
What's the license on this test case?  Can we include it in mauve?
Comment 2 Thomas Fitzsimmons 2005-07-20 19:40:29 UTC
Fixed by Sven de Marothy in GNU Classpath.  Closing.