Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WinRT - Display animated GIF in a control

I need to display an animated GIF in my metro app, but I can't find any control that allows it. (I tried Image, MediaElement and MediaPlayer from the Player Framework)

Is it possible somehow to display an animated GIF?

like image 477
Jesse Avatar asked Jan 06 '13 14:01

Jesse


People also ask

How do you display an animated GIF in Python?

For example: load a GIF using PIL and the ImageSequence and just draw it on a Tkinter window using ImageTk. PhotoImage and it will be animated.


1 Answers

You can achieve this natively by using the BitmapDecoder class in the .NET Framework. I have an example on my blog, that shows how to implement an AnimationControl that is able to show animated GIFs from a ressource gif file. Check out: http://www.henrikbrinch.dk/Blog/2013/02/21/Windows-8---GIF-animations--the-RIGHT-way

like image 135
Henrik Brinch Avatar answered Sep 28 '22 08:09

Henrik Brinch