Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
trivedirujuta
Posts: 192
Registered: 10-06-2009

How to set frame rate of animated gif?

Hi,

I am disolaying one animated GIF. is there any method or way to set frame rate of that

Please use plain text.
New Developer
YohannBB
Posts: 5
Registered: 12-17-2009
My Carrier: SFR

Re: How to set frame rate of animated gif?

How do you display your animated gif ? using a BitmapField ? a custom Field ?

 

Could you paste the code which is responsible for displaying yout gif?

 

 

Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: How to set frame rate of animated gif?

the framerate is controlled by the gif itself (if you use the animatedgiffield from the KB). you should be able to edit the value in your picture editor of choice.

 

you can replace the code that reads the framerate and put in anything you want, of course. or replace the animation code with an own timertask or thread.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.
Developer
trivedirujuta
Posts: 192
Registered: 10-06-2009

Re: How to set frame rate of animated gif?

I am displaying my animated gif using the code of animatedGIFfield of KB article

Please use plain text.
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: How to set frame rate of animated gif?

In which case the delay between frames is specified by this value I think:

_image.getFrameDelay(_currentFrame)

Please use plain text.