transparent svg icons
| Thu, 2006-05-18 15:30 | |
|
Hi,
does anyone experienced this problem with svg icons: I have all my svg icons put into a mif file and use them within my application. But the icon is drawn some kind of transparent! Depending on the selected theme the icon looks better or worse. I set the mask to NULL and there is no transparency anymore just like i want it - all colors are looking pretty ... But the icon is _not_ transparent at the edges!What I guess is that the mask doesnt has 1 bit color depth - so there are some kind of greyscales which cause this transparency. Am I wrong? Any ideas? regards makom |
|






... But the icon is _not_ transparent at the edges!
Forum posts: 63
Previously I created Bitmap and Mask separatly
CFbsBitmap *mask = AknIconUtils::CreateIconL(iconfile, EMySvgIcon_mask);
now I create bitmap and mask within on single CreatIconL() method
This works for normal views (listboxes etc.) but on the navipane this doesnt seem to work! Why?
regards
makom
Forum posts: 5
rami75lu
Forum posts: 732
What do you mean by add the svg files to mbm file?
Normally the svg file will generate mif files instead of mbm, and as usual an mbg file also will be created for including in the cpp. Earler you've to create two bitmaps - one for the actual image and another for the mask, but now only one svg is enough for an item.