本文整理自网络,侵删。
Delphi XE10 的 VCL 已经内置支持 GIF,不需要第三方控件。
uses Vcl.Imaging.GIFImgprocedure TForm2.Button1Click(Sender: TObject);begin Image1.Picture.LoadFromFile('E:\tt\abc.gif'); TGIFImage(Image1.Picture.Graphic).Animate := True; //加上这句话,图就能动。end;
――――――――――――――――
原文链接:https://blog.csdn.net/pcplayer/article/details/69666574
相关阅读 >>
Delphi winapi: getclassname - 获取指定窗口的类名
Delphi cxdbtreelist:最简单的节点图标添加方法
Delphi firemonkey的stylebook皮肤控件的使用
更多相关阅读请进入《Delphi》频道 >>