5,928
社区成员




function aaa():TBitmap ;
begin
Result:=TBitmap.Create;
Result.loadfromfile('1.BMP');
end;
end;
procedure TForm3.Button1Click(Sender: TObject);
var
t:TBitmap;
begin
t:=aaa;
try
t.SaveToFile('2.bmp');
finally
t.Free;
end;
en;