Delphi 2009 gif动画方法
2020-02-16 00:31
399 查看
以前要在 Delphi 中显示 GIF 动画,一种办法是使用第三方组件,别一种方法就是使用 WebBrowser 组件。在 Delphi 2009 中,其内部已支持 GIF 了(可能在 Delphi 2005 和 Delphi 2006 中已支持了,未确认)。关于 GIF 的相关类是 TGIFImage,在 GIFImg 单元中,看下面的代码,窗体中的 GIF 就动起来了:
uses GIFImg; procedure TForm1.FormCreate(Sender: TObject); begin // 先在窗体上放一个 TImage 组件:Image1; Image1.Picture.LoadFromFile('C:\Example.gif'); // AnimationSpeed 设定动画速度,值越大,速度越快; TGIFImage(Image1.Picture.Graphic).AnimationSpeed := 500; TGIFImage(Image1.Picture.Graphic).Animate := True; end;
转载于:https://www.cnblogs.com/linximf/archive/2010/03/03/1676912.html
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- Delphi调用外部程序详解(转)
- Delphi 2010手动安装indy10.5.7
- delphi调用js脚本
- 让UltraEdit-32成为Delphi 7编译器的工具设置
- Delphi7 安装ICS,与简单使用
- Delphi 拦截滚轮事件不响应滚轮的上下滚动
- Delphi Live Bindings 初探
- 重装Delphi10.2的IDE必要设置
- Delphi7 GDI+学习
- delphi7 TRichView 安装
- DELPHI常用函数集及简要范例
- Delphi: 如何减小应用程序(EXE)的大小?
- Delphi中建议使用的语句
- delphi使用SQL的教程8
- Delphi中本年、本月、本周第一天和最后一天
- delphi xml 添加节点
- delphi xml 查找节点
- delphi 中 Record ,packet Record
- Delphi的MessageBox的用法
- Delphi 将DBGrid中的内容导出到Excel