unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;

type
TForm1
= class(TForm)
Main1: TImage;
btn1: TButton;
procedure btn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation
uses GIFImg; //一定要加这个不然编译通不过

{$R *.dfm}

procedure TForm1.btn1Click(Sender: TObject);
begin
Main1.Picture.LoadFromFile(
'E:\344.gif');
TGIFImage(Main1.Picture.Graphic).AnimationSpeed :
= 100;
TGIFImage(Main1.Picture.Graphic).Animate :
= True;
end;

  

相关文章:

  • 2022-12-23
  • 2021-11-26
  • 2022-02-04
  • 2021-08-31
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-19
  • 2021-05-31
  • 2021-07-20
相关资源
相似解决方案