图像 – 在Silverlight中显示GIF

我的网络服务器/dir/subdir/bla.gif等文件夹中有许多GIF.

在同一台服务器上是Silverlight 3应用程序/ClientBin/bla.xap.

有没有办法在Silverlight应用程序中显示GIF?

我试过< Image x:Name = img“/>然后在代码设置this.img.Source = new BitmapImage(new Uri(”/ dir / subdir / bla.gif“))但没有成功.

欢迎任何想法.

您可以在Codeplex: http://imagetools.codeplex.com/上查看Silverlight ImageTools

Project Description

ImageTools for Silverlight is a library, which provides additional
functionality for loading, saving and manipulation images from
different sources and with different formats.

At the moment the library is able to load the most important png, jpg, bmp and gif formats. Please have a look at the following demo and select a image which should be displayed. If an error messages appears this means, that the file is not supported yet and I would very happy for a comment with the image attached, which you used for testing.

相关文章
相关标签/搜索