Messages of subject
Transparency in PJAImage |
lionel
Location : Chambéry / France
Member since : Oct 6, 2004
Messages : 1
|
Oct 6, 2004 at 4:16 PM
Hi,
I hope somebody could help me ...
my servlet draws a rectangle in a PJAGraphics (given by PJAImage)
my rectangle should have transparency and always appears opaque.
when I see in PJAGraphics all the setColor methods haven't alpha parameter.
does it mean that we can't draw transparent component...
|
Manu
Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
|
Oct 21, 2004 at 10:41 PM
PJAGraphics uses alpha value only for image drawing. It's because historically a Color instance couldn't have an alpha value in Java 1.0 and Java 1.1. This could be corrected in future versions of PJA.
Meanwhile, you can create and draw a MemoryImageSource instance with colors that use alpha values. --- Manu (moderator/modérateur)
|