Greetings, I have a program that builds a window by drawing layers one on top
of the other. Each of these layers is contained in a BufferedImage object and
the Gif graphics that go on them are contained in an ImageIcon object. So i am
useing the drawImage method to put the ImageIcon on the BufferedImage layer and
then later I use another drawImage method to put that BufferedImage onto the
BufferedImage that represents the window. However a some point when the images
are being copied the black pixels are being drawn rather then being transparent
like they normally would be. I have searched, but have found no answer to this
problem. Any help will be appreciated. Thanks.
Andrei Kouznetsov - 20 Oct 2004 16:03 GMT
> Greetings, I have a program that builds a window by drawing layers one on top
> of the other. Each of these layers is contained in a BufferedImage object and
[quoted text clipped - 5 lines]
> like they normally would be. I have searched, but have found no answer to this
> problem. Any help will be appreciated. Thanks.
black pixels are not transparent in java.
to make pixel transparent you should set pixel's alpha to 0.

Signature
Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities