I am developing an application using S60 3rd Editon FP1.
I am having problem in drawing of PNG image. I performed following two things:
Conversion of PNG into MBM
What I did is converted the PNG file in MBM file using the Image Converter Library. Using conversion library I created the MBM represantation and mask file of given PGN file. Both the MBM are created successfuly and correctly. I checked them by drawing them in the draw() function of the CCoeControl class using the DrawBitmap(). Both, the image and its mask are created properly.
Drawing the converted Image
Problem is that when I try to draw it using BitBltMasked() the image is not showing transparency. I did following in the Draw()function of CCoeControl:
1. Set brush color to white
2. draw a background image using BitBltMasked()function.
3. draw the png image over this background image using BitBltMasked()function.
Now the problem is that the transparent area of the image is showing me white color instead of the image drawn in the second step. What I am doing wrong. Please guide.