image masking in java how???

hi all, sorry for my newbie question. But i really want to know how to do an image masking in java, until now, i only used transparent image in my game. so i really want to know how to do an image masking without converting my sprite which have non transparent background to transparent background.

someone have told me to see the BufferedImage class to do this, but until now i still can’t figure it out how it works.

So, here i am asking another guidance from all of you. Maybe someone have a code example for me to understand it. Hope i didn’t ask much…

TiA

Use an image format with bitmask transparency like gif or indexed png.

But you are asking for color key transparency, right? Well, dont bother with it. Its an ancient workaround for image formats which doesnt support transparency.