Setting alpha in BufferedImage
I remember when I programmed a few SDL demos a few years back there was a simple function to set a colour on a source image to alpha so it wasn't blitted to the screen. I've searched up and the function was SDL_SetColorKey().
I've begun programming PacMan in Java at the moment, I've made a sprite class, it all loads from files and animates and such... I'm pretty pleased thus far, except for the lack of transparency in the magenta areas that are #FF00FF. I've Googled and found some pretty long winded ways of doing it that all looked a bit confusing, I've also trawled through the API and I still can't really find what I'm looking for... I'd find it hard to believe the Java API doesn't have a similarly easy to use function like SDL_SetColorKey(). The sprite image is stored as a 'BufferedImage' once loaded.
Can anyone point me in the right direction for what I should be looking at? Hoping that something as simple exists but if it doesn't and the simple solution would just be to save the images as PNGs with transparency already built into the image then I'll do that.