F
flysand
Unregistered / Unconfirmed
GUEST, unregistred user!
//先执行本过程,改变form1.image1.picture,并把原image1.picture保存到form1.fpicture
procedure tform1.bnt1click(sender:tobject);
var
tmpPicture:tPicture;
begin
tmpPicture:=image1.Picture;
image1.Picture:=fPicture; // form1.fPicture:tpicture已建立并保存了一图片
fPicture:=tmpPicture; //保存不了
Update;
end;
//执行此过程,不能得到原form1.image1.picture;
procedure tform1.bnt2click(sender:tobject);
var
tmpPicture:tPicture;
begin
tmpPicture:=image1.Picture;
image1.Picture:=fPicture;
fPicture:=tmpPicture;
Update;
end;
我错在哪?
procedure tform1.bnt1click(sender:tobject);
var
tmpPicture:tPicture;
begin
tmpPicture:=image1.Picture;
image1.Picture:=fPicture; // form1.fPicture:tpicture已建立并保存了一图片
fPicture:=tmpPicture; //保存不了
Update;
end;
//执行此过程,不能得到原form1.image1.picture;
procedure tform1.bnt2click(sender:tobject);
var
tmpPicture:tPicture;
begin
tmpPicture:=image1.Picture;
image1.Picture:=fPicture;
fPicture:=tmpPicture;
Update;
end;
我错在哪?