Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hi all,

I am trying to attach a GIF Image to a Contact as a Caller ID, when i do that, the first frame of the GIF Image is getting distorted. I donno why.. This is what i did..

pMe->pDetailedContactViewImage = ISHELL_LoadImage(pMe->a.m_pIShell, pMe->ringerPictureFileName);
IIMAGE_Notify(pMe->pDetailedContactViewImage, (PFNIMAGEINFO)DFON_SavePicture_GifNotifyHandler, pMe);
in DFON_SavePicture_GifNotifyHandler()

AEEImageInfo imageInfo;
IIMAGE_GetInfo(pMe->pDetailedContactViewImage, &imageInfo);

if (imageInfo.bAnimated == TRUE)
{
//IIMAGE_Notify(pMe->pDetailedContactViewImage, (PFNIMAGEINFO)DFON_SavePicture_GifNotifyHandler, pMe);
IWIDGET_SetImage(pMe->pDetailedContactViewImageWidget, pMe->pDetailedContactViewImage);
IWIDGET_SetScale(pMe->pDetailedContactViewImageWidget, imageExtent.width, imageExtent.height);
IWIDGET_SetProperty(pMe->pDetailedContactViewImageWidget, KWC_CUSTOM_PROP_ANIMATION_POS, (uint32)&imageWidgetPos);
IWIDGET_Animate(pMe->pDetailedContactViewImageWidget, TRUE);

Please let me know why the GIF Image is getting distorted...