Hi ,
I am trying to build an image in the fly using createImage()
what I want to do is have the background of the image filled with transparency and
then draw my image onto this transparent image, and then use this as a sprite if you like.
(it has to be done this way for the project I am working on)
but for some reason the transparency will not work - i keep getting the image on a non transparent background
- see example code?
spriteImage=Image.createImage(getWidth(), getHeight());
Graphics gf = spriteImage.getGraphics();
gf.setColor(0xff0000); // seems to fille the image with a red background???
gf.fillRect(0,0,getWidth(),getHeight());
// should fill with transparent,right?
// and then draw my sprite on to this image thus giving a sprite on a transparent background.
Please help, Pretty please,
Cheers
Rmdire