简单的通过GifBitmapDecoder解析GIF图片,获取gif帧数和每一帧数据,然后通过时间切换显示,效果如下: 代码如下: namespace GIfImageApplication { public class GifImageExceptionRoutedEventArgs : RoutedEventArgs { public Exception ErrorException; public GifImageExceptionRoutedEventArgs(RoutedEvent r
using System; using System.IO; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Media.Imaging; using System.Windows.Threading; namespace GifImageLib { class GifAnimation : Viewbox { private c