Join Now
Quality Rating:
  • Currently 1.0 / 5
(1.0 / 5 - 1 vote cast)
Expertise Level:
  • Currently 2.5 / 5
(2.5 / 5 - 2 votes cast)

This page was last modified 04:13, 14 May 2008.

Gif animation for symbian 2nd and 3rd edition phones

From Forum Nokia Wiki

Gif Animation for symbian 2nd edition phones

Derive your application container class from MPAlbAnimationObserver, and declare these

CPAlbImageViewerBasic* iViewer ;
void Notify( TAnimationEvent aEvent );

And, in your container,Animation method/function use this code. Dont forget to return count in CountComponentControls() and iViewer pointer in ComponetControl() methods.

iViewer = CPAlbImageViewerBasic::NewL(this,aRect);
iViewer->SetAnimationObserver(this,ETrue); //for looping 
iViewer->LoadImageL(_L("c:\\nokia\\images\\anim.gif"),EColor4K);		
iViewer->PlayAnimationL(); // support image and animation

Symbian 3rd edition phones

iGifFileDataprovider = new (ELeave) CICLAnimationDataProvider;
iGifFileDataprovider->SetFileL(iFsSession,_L("C:\\nokia\\images\\anim.gif")); 
 
igifanimationconfig.iFlags = TAnimationConfig::ELoop;
igifanimationconfig.iData = 10000;
TPoint gifpoint = Position();
iGifAnimatior = CBasicAnimation::NewL(iGifFileDataprovider,gifpoint,CEikonEnv::Static()
 ->WsSession(),Window());
iGifAnimatior->Start(igifanimationconfig);
 
//In your Draw method
iGifAnimatior->Draw(gc);


Additional way showing GIF animation with image decoder API: Showing_GIF_animations

Related Discussions
Thread Thread Starter Forum Replies Last Post
Series 60 #rd Edtion:Application Installed But Not Seen in Installed Folder. gmsk19 General Symbian C++ 0 2007-12-21 14:37
3rd Edition .rsc file Haktivex General Symbian C++ 2 2007-04-23 14:53
Some questions in porting 2nd C++ applications to 3rd Edition k9998 General Symbian C++ 1 2007-04-20 14:46
Files in 3rd Edition aditya4180 General Symbian C++ 3 2007-03-30 13:42
How to get UID for legacy range (class 1)? Leanid General Symbian C++ 6 2007-04-12 18:48
 
Powered by MediaWiki