Yes, that works! Thank you!
On Tue, 2 Dec 2003 10:37:41 -0300, Alessandro Borges
<[EMAIL PROTECTED]> wrote:
Hi,
Try to set also a TransparencyAttribute to your
shape's appearance.
Just setting a texture with alpha is not enougth.
Alessandro
--- Michael Pfeiffer <[EMAIL PROTECTED]> escreveu:
On Tue, 2 Dec 2003 12:49:34 -0000, Jeremy Booth
<[EMAIL PROTECTED]>
wrote:
>> BufferedImage flareImage=new
>>
BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB);
>>
flareImage.setRGB(0,0,width,height,pixels,0,width);
>
> according to the javadoc setRGB doesn't set any
alpha, just the RGB, so
> the alpha will not be set and the image will be
fully opaque.
This can't be the reason because it works correct
when I draw the same
BufferedImage on a JPanel. Btw:
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html#setRGB(int,
int, int, int, int[], int, int) says "Sets an array
of integer pixels in
the default RGB color model (TYPE_INT_ARGB)" which
sounds for me that this
includes the alpha-values. And I don't know an
alternative way to create a
(Buffered)Image out of a ARGB-bitmap...
Michael
--
http://java3d.virtualworlds.de
http://www.3dchat.org - Welcome to the unreal world!
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED]
and include in the body
of the message "signoff JAVA3D-INTEREST". For
general help, send email to
[EMAIL PROTECTED] and include in the body of the
message "help".
Yahoo! Mail - 6MB, anti-spam e antivÃrus gratuito. Crie sua conta agora:
http://mail.yahoo.com.br
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff JAVA3D-INTEREST". For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".
--
http://java3d.virtualworlds.de
http://www.3dchat.org - Welcome to the unreal world!
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".