procedure TForm1.Button1Click(Sender: TObject);
var
MetaFile: TMetaFile;
MFCanvas: TMetaFileCanvas;
begin
MetaFile := TMetaFile.Create;
try
MetaFile.Height := Image1.Picture.Bitmap.Height;
MetaFile.Width := Image1.Picture.Bitmap.Width;
MFCanvas := TMetafileCanvas.Create(MetaFile, 0);
try
MFCanvas.Draw(0, 0, Image1.Picture.Bitmap);
finally
MFCanvas.Free;
end;
MetaFile.SaveToFile('d:/t.wmf');
finally
MetaFile.Free;
end;
end;