I would like to display an animated gif on a .NET Compact Form
.
Currently I use a PictureBox
control and toggle between
.Visible = true
and .Visible = false
.
After .Visible = true
the gif is shown however it's not animated. How can I get the .NET Compact Framework to animate it?
I already tried this but it doesn't work.
Android devices have not had built-in animated GIF support, which causes GIFs to load slower on some Android phones than on other OS.
Loads and saves GIF animation files. Animated images contain a sequence of images called frames which a viewer application can show as an animation. On load the plugin loads all frames from the file and adds them as layers to a new Paint.NET document.
Animated GIF inserting to HTML is similar to image inserting. For example, you can insert animated GIF to HTML with IMG tag: <IMG SRC="animation1. gif">.
By default the .Net Compact framework does not support displaying GIF based animations on a Windows Form. It is possbile to code up a custom animator that will essentially do the same. Here's a link to a sample class for displaying a GIF on the compact framework.
http://msdn.microsoft.com/en-us/library/aa446483.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With