[java] Transparent images in Java?

Started by
3 comments, last by Peter Svensson 22 years, 5 months ago
Hello! How can i mask an image when i use the Graphics class? I want to draw a ball on the screen but everywhere the image has black i don''t want it to draw... Hope you get it =) /Peter - Cheers!
Advertisement
Can you make the image a .gif and save it out with a transparent colour and use that colour for the parts you want transparent?
Tried that and it works =)

Thanx!!
while you lot are talking about transparent gifs, what program do you use? i want one that''s simple ("click on the image to select which colours to be transparent") and most important, free.
_______________________ http://mill.3dfxsweden.net
i found mspaint to be an excellent program for just doing that
_______________________ http://mill.3dfxsweden.net

This topic is closed to new replies.

Advertisement