try
if SavePictureDialog1.Execute then
Image1.Picture.SaveToFile(SavePictureDialog1.filename);
finally
savepicturedialog1.Free;
end;
这是代码,当第一次点击按钮可以,但是第二次就不行了!如过有更好的方法请写出来!
if SavePictureDialog1.Execute then
Image1.Picture.SaveToFile(SavePictureDialog1.filename);
finally
savepicturedialog1.Free;
end;
这是代码,当第一次点击按钮可以,但是第二次就不行了!如过有更好的方法请写出来!
如不是,去掉这个吧,释放掉了,肯定不行啦
try
if SavePictureDialog1.Execute then
Image1.Picture.SaveToFile(SavePictureDialog1.filename);
finally
Exit;
end;
这样不是很好吗?
finally
savepicturedialog1.Free;
就可以了。