I am trying to display a transparent bg png image on the s60 emulator screen. It works if i just creating the raw image and display it. However, i need to resize the image, so if i resize the raw image and display it on screen, i will get a white background where it should be transparent..
So far i have tried a few ways to solve the problem.
//create a mutable image
Image img = Image.createImage(width,height);
Graphics g = img.getGraphics();
//set some color that you know you aren`t going to use
//this is where you draw the things that you want into g
/* remember that if you are drawing an image into this graphics, it must have
* the same color that you selected before(ie 0x123456 ) as a background
*color in order to become transparent later
//convert that image into a bytearray
//replace the color that you had put before for a transparent pixel
//and then create the image with a transparent background
But it didnt work...the bg color will jus remain as the 1 i set earlier on..
Any solution to my problem??