How can I draw a filled rectangle in a java applet with half opacity/transparency?
+2
A:
What API are you using? If you use Graphics from Java2D, when you create Color objects, you can add transparency to them as an alpha between 0 and 1.
Here's an old article on Java2D that has some examples
Uri
2009-01-31 22:53:14
am using awt.Graphics.fillRect and awt.Graphics.setColor api calls.
2009-01-31 23:07:20