use GIFImg
procedure TForm1.Button1Click(Sender: TObject);
var pic_path:string;
begin
pic_path := ExtractFilePath(ParamStr(0)) + 'img\gif\loading.gif';
image1.Picture.LoadFromFile(pic_path);
// AnimationSpeed 设定动画速度,值越大,速度越快
TGIFImage(image1.Picture.Graphic).AnimationSpeed := 300;
TGIFImage(image1.Picture.Graphic).Animate := True;
end;
标签:Picture,动画,delphi,pic,GIF,path,image1 From: https://www.cnblogs.com/sixty-five/p/17316772.html