hi,
I am trying to make a part of an image as transparent so that I can see the background image from that part.
Please suggest me how do I proceed.
hi,
I am trying to make a part of an image as transparent so that I can see the background image from that part.
Please suggest me how do I proceed.
The transparency of image is depend upon its Alpha blending value, so try to set it in a Image maker Tools like Photoshop.
use masked image
there is some example in pre-3rd SDKs.
it all depends on how you want to package to image if you want to use a static image then you can use a trasparent image in the form of MBM/svg(mif) if you download from your server then you can put the transparent images in format of png . and if you no control on your downloaded images then you have to programmatically do the transparency.
in any case all 3 cases have corresponding code in wiki.
S60Ex\Graphics. It is present in all S60 1st and 2nd edition SDK-s, and it is re-introduced in S60 3rd FP1 (so it is missing from S60 3rd and S60 3rd MR).
Hi,
I tried photoshop and made a transparent image. when I draw the image over another image the area that I made transparent is comming to be white, I can't see the image behind it through that transparent area. Is it beause of the system API. Is there anyway i could made a part of the image as transparent using Symbian API.
Please suggest me.
HI,
I tried photoshop and make a part of an image as transparent. But when I draw it over another image the portion that I have made transparent is comming to be white. I can't see the image behind it through that transparent area. Is it because of the Symbian API. is there anyway I could make a part of an image as transparent and draw it?
Please suggest me.
Hi ,
This works for me.
i have done this with Bitmap. make image which ever u want , make it mask and colour the portion with white colour which u want to make transparent and rest portion of mask is black .save mask as monochorome. while including mask in mbm give color 8.
after this you will able to get transparent image.
CFbsBitmap *bitmap, *mask;
AknIconUtils::CreateIconL(bitmap, mask, KIPfile,
EMbmcontrolMoveimage, EMbmcontrolMoveimage_mask);
AknIconUtils::SetSize(bitmap, TSize(20, 20), EAspectRatioNotPreserved);
AknIconUtils::SetSize(mask, TSize(20, 20), EAspectRatioNotPreserved);
and in Draw
TRect itemRect = TRect(TPoint(0, 0), TSize(20, 20));
gc.BitBltMasked(ImageLocation, bitmap, itemRect,
mask, EFalse);
Last edited by purnima.attarsingh; 2010-08-07 at 10:54. Reason: ghgg
Hi,
what are EMbmcontrolMoveimage and EMbmcontrolMoveimage_mask. I have a bitmap now please guide me with the code , Lets say my image name is background.png.
Hi,
what are EMbmcontrolMoveimage, EMbmcontrolMoveimage_mask, Let say i have an image back.png. Please guide me with the code for this image to make a portion transparent.
Hi,
what are EMbmcontrolMoveimage, EMbmcontrolMoveimage_mask, let say I have an image back.png, and after conversation the bitmap is iBitmap. Now please guide me with the code for making a portion as transparent.
Hi,
What are EMbmcontrolMoveimage, EMbmcontrolMoveimage_mask, let say i have an image back.png and the bitmap is ibitmap. Now please guide me with the code for making a portion as transparent.
Hi,
Let say I have an image image.png and the bitmap is ibitmap. Now please guide me with the code for making a part as transparent.