X
xuaner
Unregistered / Unconfirmed
GUEST, unregistred user!
请问:
如何将以下代码中图形按比例缩小。使之与image控件大小相符。?
var
a:timage;
cs:string;
begin
cs:=dm.dyk_qry.fieldbyname('findpath').asstring+'/'
+dm.dyk_qry.fieldbyname('pic_file').asstring+'.jpg';
a:=timage.Create(self) ;
try
a.Picture.LoadFromFile(cs);
image1.Picture.Graphic:=a.Picture.Graphic ;
finally
a.Free;
end;
end;
如何将以下代码中图形按比例缩小。使之与image控件大小相符。?
var
a:timage;
cs:string;
begin
cs:=dm.dyk_qry.fieldbyname('findpath').asstring+'/'
+dm.dyk_qry.fieldbyname('pic_file').asstring+'.jpg';
a:=timage.Create(self) ;
try
a.Picture.LoadFromFile(cs);
image1.Picture.Graphic:=a.Picture.Graphic ;
finally
a.Free;
end;
end;