使用GIF(仅限Delphi2007)

-----------

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;


---------------------------------------

你可能感兴趣的:(Delphi)