bitmask transparency in a VolatileImage, how?

I read on here somewhere, that its possible - but for the life of me, I can’t see where.

I can make automatic images easy enough (created from a gif, using Toolkit.createImage()) that have a bitmask, and render as fast as a VolatileImage.

Also, I am under the impression that images created from Component.createImage(w,h), while being accelerated, do not have an alpha channel.

So, my question is - How do I create a VolatileImage, that has bitmask transparency?

The 1 idea I still have left to pursue, was to have a look at the alternative GraphicConfigurations that GraphicsDevice.getConfigurations() returns, and see if 1 of those will give me a VolatileImage that supports a bitmask.

-just tried that-
I get only 1 GraphicsConfiguration returned.

abu,

Hey abuse, the 2 best replys on this subject are

from the autority.

http://www.java-gaming.org/cgi-bin/JGOForums/YaBB.cgi?board=2D;action=display;num=1037383141

This post explains the rules if you want it to stay in hardware.

http://www.java-gaming.org/cgi-bin/JGOForums/YaBB.cgi?board=2D;action=display;num=1037108844

GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice ();

Image image = device.getDefaultConfiguration ().createCompatibleImage (800,600,Transparency.BITMASK);

n1, ta very much.