delphi能否把图像Timage对象保存成一个动态临时文件?

2024-12-12 13:54:22
推荐回答(2个)
回答1:

var
mybmp:timage;
TmpName: string;
begin
mybmp:=timage.create(application);
TmpName := 'C:\tempbmp.bmp';

......//转换
mybmp.picture.savetofile(TmpName);

回答2:

mybmp.picture.savetofile(savepicturedialog1.filename);
你把savepicturedialog1.filename直接写成个路径不就行了