I have a PNG which has a single index transparent colour (0xffffff). If I load the image and display it using Image.createImage(...) and Graphics.drawImage (...) it displays correctly (i.e. transparent, so the background is visible).
Image myImage = Image.createImage ("/blah.png"
// this looks correct
g.drawImage (myImage, 0, 0, Graphics.TOP | Graphics.LEFT);
HOWEVER if I create a new mutable Image using Image.createImage (width, height) and then clip and draw portions from the immutable image into it, and then draw the new mutable image, I lose the transparency information i.e. I have a big white box around the image
Basically I'm writing a bitmap font system for a game menu, and I need a way to create mutable images containing menu elements (strings) that have been rendered. Is there a way to keep the transparency info, or to set it in the new mutable Image?