Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:13, 23 June 2008.

How to display gif files

From Forum Nokia Wiki

You could play animated gif in an easy way.


1st/2nd code

#include <palbimageviewerbasic.h>
...
iGifImage = CPAlbImageViewerBasic::NewL(this, TRect(TPoint(0, 0), TSize(rect.Width(),rect.Height())));
iGifImage->SetImageNameAndDisplaymodeL(aGifName ,CEikonEnv::Static()->DefaultDisplayMode());
iGifImage->SetAnimationObserver(this, ETrue);
iGifImage->LoadImageL();
iGifImage->ScaleOptimumL();
 
if(iGifImage->IsAnimation())
   iGifImage->PlayAnimationL();


3rd code

#include <ICLAnimationDataProvider.h>
...
iGifProvider = new (ELeave) CICLAnimationDataProvider;
iGifProvider->SetFileL(iFs, _L("C:\\YourGifName.gif")); 
 
aGifconfig.iFlags = TAnimationConfig::ELoop;
aGifconfig.iData = 10000;
TPoint aPoint = Position();
 
iGifImage = CBasicAnimation::NewL(iGifProvider , aPoint , CEikonEnv::Static()->WsSession(),Window());
 
iGifImage->Start(aGifconfig);
 
//put this code in the Draw() function
iGifImage->Draw(gc);


NOTE: basicanimattion.h is not available in 3rd edition MR release. ref: MR documentation

Useful links

Gif (Graphics Interchange Format)

Related Discussions
Thread Thread Starter Forum Replies Last Post
CPAlbImageViewerBasic donkeysky Symbian 6 2007-06-26 06:38
colour graphics cocomac General Browsing 1 2005-03-29 10:36
Nokia 6680 and N73 problems bluebelle_88 Series 40 & S60 Platform Feedback 10 2007-02-08 21:56
Downloading GIF animations on 6230 LimpingFish Mobile Java Media (Graphics & Sounds) 0 2006-12-01 18:08
User::Free does not return memory to heap immediately JohnKeats General Symbian C++ 8 2004-04-02 13:36
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX