6
6ysnow
Unregistered / Unconfirmed
GUEST, unregistred user!
用image画图,
var
FIcon: TIcon;
begin
try
FIcon:=TIcon.Create;
FIcon.LoadFromFile('文件.ico');
tempImage.Height:= FIcon.Height;
tempImage.Width:= FIcon.Width;
tempImage.Canvas.Draw(0,0,FIcon);
finally
FIcon.free;
end;
结果偶尔会提示:Can only modify an image if it contains a bitmap!
怎么回事那?仅仅能够修改???我如何修改??
我的流程是,根据模块的个数来实时画图,相当于会不停的重复调用该函数,如何控制不会冲突?/
var
FIcon: TIcon;
begin
try
FIcon:=TIcon.Create;
FIcon.LoadFromFile('文件.ico');
tempImage.Height:= FIcon.Height;
tempImage.Width:= FIcon.Width;
tempImage.Canvas.Draw(0,0,FIcon);
finally
FIcon.free;
end;
结果偶尔会提示:Can only modify an image if it contains a bitmap!
怎么回事那?仅仅能够修改???我如何修改??
我的流程是,根据模块的个数来实时画图,相当于会不停的重复调用该函数,如何控制不会冲突?/