rubberdi
asked on
Add transparent img on top of BufferedImage
Hi all,
I have a .GIF image, with transparent areas on it. I also have a BufferedImage.
I would like to import and add the .GIF image on top of the BufferedImage some how.. :o\
Making sure that the transparent cells on the .GIF are also transparent after placed on top of the BufferedImage..
Can this be done?? Any examples would be MUCH appreciated! :D
Thanks in advance!
I have a .GIF image, with transparent areas on it. I also have a BufferedImage.
I would like to import and add the .GIF image on top of the BufferedImage some how.. :o\
Making sure that the transparent cells on the .GIF are also transparent after placed on top of the BufferedImage..
Can this be done?? Any examples would be MUCH appreciated! :D
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>So, your above code will draw only the 'opaque' cells ontop of the BI?
Should do, if you've got a gif with transparency
>>Also, how do I then turn the 'Graphics g' to an image?
What do you want to do - produce a file, or what?
Should do, if you've got a gif with transparency
>>Also, how do I then turn the 'Graphics g' to an image?
What do you want to do - produce a file, or what?
So, your above code will draw only the 'opaque' cells ontop of the BI?
Also, how do I then turn the 'Graphics g' to an image?
Would something like this work: Image ii = new Image( g ); // ?????
(Soz for my ignorance)
Thanks alot, :)
[r.D]