社区
C#
帖子详情
WPF中,Background不支持动态的GIF文件吗?
电饭锅部
2013-10-05 01:09:24
Background不支持动态的GIF文件吗?我试了下,不动呢?
如何让Background支持GIF呢
...全文
211
5
打赏
收藏
WPF中,Background不支持动态的GIF文件吗?
Background不支持动态的GIF文件吗?我试了下,不动呢? 如何让Background支持GIF呢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
devmiao
2013-10-05
打赏
举报
回复
http://www.cnblogs.com/zhouyinhui/archive/2007/12/23/1011555.html
以专业开发人员为伍
2013-10-05
打赏
举报
回复
这里有一个简单的例子。(他的代码好像有些臃肿)
http://www.cnblogs.com/alamiye010/archive/2010/07/26/1785157.html
以专业开发人员为伍
2013-10-05
打赏
举报
回复
写上5、6行代码,定时修改Image的Source属性,就可以产生整帧刷新的动画。
申江渔夫
2013-10-05
打赏
举报
回复
Show GIF animation in WPF
mnxm
2013-10-05
打赏
举报
回复
最近流行晒扫雷程序代码 前几天我也用wpf做扫雷的时候 也被这个难道了 顶起 关注
VGScene 2.8 FULLSOURCE
VGScene speeds the development of all graphical application, providing: a graphical editor integrated in IDE, graphical objects, simplify animation, advanced windows and controls, maximum performance, skinning engine, bitmap effects. VGScene can be used as development tools for SCADA, GIS, CAD and KIOSK applications. Powerful vector engine like Adobe Flash or Microsoft
WPF
Fast realtime anti-aliased vector graphics, resolution independent, alpha blending, gradient and special visual filling WYSIWYG design-time and run-time designer and property editors Advanced GUI engine - window, button, textbox, numberbox, memo, anglebox, list box and much much more Advanced skinning engine based on vector graphics styles. Cool exists styles - Dark, Modern, Vista. VGScene provides shape primitives for 2D graphics along with a built-in set of brushes, pens, geometries, and transforms Advanced animations techniques calculated in
background
thread. Easy to use, accuracy, minimal CPU usage and automatic FPS correction VGScene provides for bitmap effects, however, they are rendered in software. Special effects such as dropshadows and blurring are built in. VGScene can be used as development tools for SCADA, GIS, CAD and KIOSK applications Path object have SVG,
WPF
path data format Very easy to use and powerful layouts. The child elements are recursively arranged by their parents. Layered forms, unicode enabled Jpeg, Png, Tiff and
Gif
format read/write support on Windows and Mac OS X Fast thumbnail creation and image processing Cross-platform solution available on Microsoft Windows and Apple Mac OS X
VGScene_2.92.rar
VGScene Version: 2.92 Platform: Delphi 5-2010, C++ Builder 5-2010, Lazarus 0.9.27 Languages: English VGScene speeds the development of all graphical application, providing: a graphical editor integrated in IDE, graphical objects, simplify animation, advanced windows and controls, maximum performance, skinning engine, bitmap effects. VGScene can be used as development tools for SCADA, GIS, CAD and KIOSK applications. * Powerful vector engine like Adobe Flash or Microsoft
WPF
* Fast realtime anti-aliased vector graphics, resolution independent, alpha blending, gradient and special visual filling * WYSIWYG design-time and run-time designer and property editors * Advanced GUI engine - window, button, textbox, numberbox, memo, anglebox, list box and much much more * Advanced skinning engine based on vector graphics styles. Cool exists styles - Dark, Modern, Vista, Air. * VGScene provides shape primitives for 2D graphics along with a built-in set of brushes, pens, geometries, and transforms * Advanced animations techniques calculated in
background
thread. Easy to use, accuracy, minimal CPU usage and automatic FPS correction * VGScene provides for bitmap effects, however, they are rendered in software. Special effects such as dropshadows and blurring are built in. * VGScene can be used as development tools for SCADA, GIS, CAD and KIOSK applications * Path object have SVG,
WPF
path data format * Very easy to use and powerful layouts. The child elements are recursively arranged by their parents. * Layered forms, unicode enabled * Jpeg, Png, Tiff and
Gif
format read/write support on Windows and Mac OS X * Fast thumbnail creation and image processing * Cross-platform solution available on Microsoft Windows and Apple Mac OS X
在
Wpf
中
使用
动态
GIF
图像的简单方法
Wpf
本身的方法如果加载
GIF
实在是过于复杂,我们可以通过使用winform控件,减少复杂性方法一:利用winform控件 System.Windows.Forms. PictureBox pb = new System.Windows.Forms.PictureBox() { Width = 200, Height = 150, SizeMode =
【C#】
wpf
添加
gif
动图
支持
1.nuget里下载
Wpf
Animated
Gif
包,然后安装。 2.添加
Wpf
Animated
Gif
包的命名空间:xmlns:
gif
="http://
wpf
animated
gif
.codeplex.com" 3.开始使用: 这段代码只是个示例,主要的就是把AnimatedSource设置为你的
gif
动画即可。 总的代码:
wpf
找不到资源
文件
问题
1. 资源图片是存在项目
中
的,但一运行就报错 2. 解决方法 2.1 图片右键属性
C#
110,568
社区成员
642,567
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章