image - 在 Silverlight 中显示 GIF

标签 image silverlight gif imagesource

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

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

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

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

欢迎任何想法。

最佳答案

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

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.

关于image - 在 Silverlight 中显示 GIF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1457959/

相关文章:

php - 通过 PHP 上传 Wordpress 附件

css - 生成 css 验证码图像(字母和白噪声)

silverlight - 为什么在 Visual Studio 2010 中使用 Silverlight 4 时一定会出现如此多的延迟?

c++ - Qt - 如何在 QGraphicsPixmapItem 中显示 gif(动画)图像

android - Glide - 加载 GIF 作为占位符

android - 分辨率感知图像不起作用 - Flutter

javascript - CORS 错误取决于图像参数设置顺序

silverlight - 在线语音聊天 : Why client-server model vs. 点对点模式?

c# - 设置通用 WPF 控件的样式

rotation - 使用 imagemagick 旋转透明 gif