flash.dpr
program flash;
uses
Windows,
Messages,
SysUtils,
Variants,
Classes,
Graphics,
Controls,
Forms,
Dialogs,
ShockwaveFlashObjects_TLB,
StdCtrls,
OleCtrls;
{$R *.res}
var
Bmp1:TBitmap;
ShockwaveFlash2: TShockwaveFlash; // 声明变量
begin
Application.Initialize;
Application.Run;
Bmp1:=TBitmap.create;
ShockwaveFlash2:= TShockwaveFlash.CreateParented(GetDesktopWindow());
ShockwaveFlash2.LoadMovie(0,'c:/top.swf');
Bmp1.Width:=ShockwaveFlash2.width;
Bmp1.Height:=ShockwaveFlash2.Height;
ShockwaveFlash2.PaintTo(Bmp1.Canvas,0,0);
Bmp1.SaveToFile('c:/temp.bmp');
// Application.Initialize;
// Application.CreateForm(TForm1, Form1);
// Application.Run;
end.