Hi, i am using following code to create image button , i am using SVG Image , this is displaying button but Plain... no Image getting displayed....
iButton = new (ELeave) CEikCommandButton();
AknIconUtils::CreateIconL(iMyIcon, iMyIconMask, KMyIconMif,
EMbmTemppro_aifLogo, EMbmTemppro_aifLogo_mask);
AknIconUtils::PreserveIconData(iMyIcon);
AknIconUtils::PreserveIconData(iMyIconMask);
TSize xx;
xx.iHeight = iButton->Size().iHeight / 2;
xx.iWidth = iButton->Size().iWidth / 2;
err = AknIconUtils::SetSize(iMyIcon, xx, EAspectRatioPreserved);
AknIconUtils::SetSize(iMyIconMask, xx, EAspectRatioPreserved);
//iButton->SetPictureL(iMyIcon,iMyIcon,CEikCommandButtonBase::EFirst);
iButton->SetPictureL(iMyIcon, iMyIconMask);
iButton->SetDisplayContent(CEikCommandButton::EPictureOnly);
iButton->SetContainerWindowL(*this);
Please help me to solve this Problem...
i have tried to display BMP Image it is getting displayed but getting problem in setting size , so tried to use SVG
Thanks in advance




