Hi Haithem.
For knowing what it is: this is currently not foreseen.
It might be interesting to add some code to the VideoProvider, which
will fail if there is only one frame; but then again, maybe you want
this to be shown still as a 'video'? Easiest solution: just use the
VideoProvider for animated and non-animated.
For controlling the animation, you need to use:
http://www.directfb.org/docs/DirectFB_Reference_1_3/IDirectFBVideoProvider.html
pause is done with SetSpeed.
You have to program the clicking handling yourself, that shouldn't be
too difficult.
Greets,
Niels
haithem rahmani wrote:
Hi all,
how to know wether a GIF image is animated or not, inorder to call the
suitable provider?
I have read that an animated GIF contains an extention or a comment
like "NETSCAPE 2.0".
How can my application know that ?
the second question, how to do to control the animation at runtime
,for example when clicking on the image
the animation starts, then when clicking again the animation stops?
regards.
haithem.
------------------------------------------------------------------------
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
--
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users