Hi,
I want to create a transparent RGBImage on the background image(this is not transparent). and i want to draw other non-transparent image on top of RGBImage using RGBImage drawImage method. how can i do this ? i want a final image from that RGNImage getImage() method so that i can draw it on canvas.
like
RGBimage rgbImage= new RGBImage(200,235);
rgbImage.setcolor(0xaa, 0xff, 0xff,0xff) // 0xaa is the transparency value
rgbImage.fillRect(0, 0, 220, 235); // fill entire image with the specified colour
//Draw non transparent Top Images on the transparent image
rgbImage.drawImage(sprite1, 10, 120, Graphics.TOP | Graphics.LEFT);
rgbImage.setClip(90,150,10,10);
rgbImage.drawImage(sprite2, 90, 150, Graphics.TOP | Graphics.LEFT);
rgbImage.setClip(0,0,220,235);
rgbImage.drawImage(sprite3, 10, 30, Graphics.TOP | Graphics.LEFT);
finalImage = rgbImage.getImage();
this is what i want to to use. How can i do this. I want to make a RGBImage Class.
prompt response would be appriciated !
currently what i'm doing is to create an mutable image then get the graphics object of that mutable image then i draw images using that graphics object on top of that image. then i change the alpha pixsels of that mutable image and then i create an image using RGB array. but this makes everything transparent. but i want top images non transparent. please help me out with this
Thanks,
Tom cruise
California, USA



