Gif动画 [英] Gif animation

查看:102
本文介绍了Gif动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。我想在我的wpf应用程序中播放动画gif。
最简单的方法是什么?
谢谢!

解决方案

我希望其他人可以发布更好的答案,但我发现这样做的唯一方法是在Frame中托管一个小的html页面。 html页面可以显示图像对象无法显示的图像。框架似乎需要磁盘上的html文件才能工作。

就像我说的那样,我希望有更好的方法。

有些人似乎很幸运使用了MediaElement,但我不相信这是正式支持的。

Hi.
I want to play an animated gif in my wpf application.
What's the easiest way to do this?
Thanks!

解决方案

I hope someone else can post a better answer, but the only way I found to do it was to host a tiny html page inside a Frame.  The html page can display the image where a image object can't.  The Frame seems to need a html file on disk to work.  

Like I said, I hope there is a better way.
 
Some people seem to have had luck using a MediaElement, but I don't believe this is officially supported.


这篇关于Gif动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆