Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you show animated gifs with .NET Compact Framework

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.

like image 925
Tobias Avatar asked Nov 17 '08 02:11

Tobias


People also ask

Why are my GIFs not moving?

Android devices have not had built-in animated GIF support, which causes GIFs to load slower on some Android phones than on other OS.

Does paint net work with GIFs?

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.

How do I display a GIF image tag?

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">.


1 Answers

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

like image 50
JaredPar Avatar answered Oct 01 '22 14:10

JaredPar