unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, GIFImage;
type
TForm1 =
class(TForm)
Button1: TButton;
Image1: TImage;
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
GIFimg: TGIFImage;
begin
GIFImageDefaultAnimate := True;
// da
GIFimg:= TGIFImage.Create;
try
GIFimg.LoadFromFile('
animation1.gif');
Image1.Picture.Assign(GIFimg);
finally
GIFimg.Free;
end;
end;
end.