hello to everyone, I need some advice, what is the best way to use sprites (black pixels not drawn) without using masks, i already have some experience with awt/swing/java2d, and a lot of dos demos. thanks
Depends how you’re getting your images in, if you’re loading GIFs of PNG you could just use the transparency settings of those formats.
Kev
well, I already tried gifs, loaded with imageio, but when there are more than 10 gifs there is a huge slowdown
The sample methods listed here have always worked well for me:
http://wiki.java.net/bin/view/Games/LoadingSpritesWithImageIO
Also have a look around here for the balls.jar demo. It’s the best all around demo I’ve yet come across for showing how to work with all the different accelerated image formats, animation, transparency, resource loading, etc. in Java2D
thanks