Results 1 to 1 of 1
Thread: Painting onto Aero Glass
- 06-02-2010, 04:49 PM #1
Member
- Join Date
- Jun 2010
- Posts
- 1
- Rep Power
- 0
Painting onto Aero Glass
I'm using SWT to produce glass windows. I have the code working for the glass in the client area, but I'm running into a problem any time I try to add something to it. Any time I add anything that's dark to the window (painting dark images, drawing rectangles, etc) it will show up as transparent in that section. In fact, it seems to be doing it for all colors that aren't pure white, with varying levels of transparency.
I have a feeling it's because you have to set the composite to black in order for the transparency to work in the first place. I found a site talking about doing it in c sharp that recommends first adding anything you want to draw to a path, and then filling the path, but when I tried that I couldn't add images to the path and the rectangles I added still produced the same effect.
I know it's possible as I can see it done here (almost exactly what I want to do), but I can't get it to work. Any ideas?
Thanks in advance!
[edit]Nevermind, I was able to solve this by adapting this code, using a Label with an image added to it.[/edit]Last edited by Andolamin; 06-04-2010 at 03:24 AM. Reason: Solved
Similar Threads
-
Need help with synchronous painting
By JavaRulez in forum Advanced JavaReplies: 7Last Post: 05-09-2010, 08:34 AM -
Images don't painting
By daniel.henrique in forum New To JavaReplies: 2Last Post: 02-12-2010, 11:48 AM -
Objects painting themselves?
By martypapa in forum Java 2DReplies: 19Last Post: 02-06-2010, 04:08 AM -
painting problem
By hannes in forum New To JavaReplies: 3Last Post: 01-17-2010, 11:44 AM -
JPanel not always painting everything
By ekted in forum AWT / SwingReplies: 0Last Post: 11-26-2009, 11:24 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks