Home pageFind It!Contact PJAPJA documentation

PJA

 PJA Toolkit forum

This forum is dedicated to PJA Toolkit.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

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)


Home pageFind It!ContactTop

© Copyrights 1997-2014 eTeks - All rights reserved

PJAPJA documentation