I'm trying to draw a transparent.png image over a TV signal (so blending before rendering is kinda out).
When I was drawing a transparent rect, I could just set SrcOver and specify an alpha for my background color and it would work:
((DVBGraphics) g).setDVBComposite(DVBAlphaComposite.SrcOver);
But now I'm actually trying to use a png with transparency set and that doesn't work (it's just solid).
If I set XOR mode:
g.setXORMode(Color.white);
after setting SrcOver, the entire image becomes translucent, not just the specified dots. Also the parts set to "Transparent" are still visible.
Can anyone point me to the magic set of calls that makes this work?
(Also, swing isn't available--just most of java 1.4).