F
feng1234
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
var
mm:Trect;
mybit:Tbitmap;
begin
mybit.Create;
mybit.Assign(image1.Picture.Bitmap);
image1.Width:=image1.Width*2;
image1.Height:=image1.Height*2;
mm:=image1.ClientRect;
image1.Canvas.StretchDraw(mm,mybit);
end;
stretchdraw的意思是不是把mybit这个图像画到image1的mm这个矩形里面?
var
mm:Trect;
mybit:Tbitmap;
begin
mybit.Create;
mybit.Assign(image1.Picture.Bitmap);
image1.Width:=image1.Width*2;
image1.Height:=image1.Height*2;
mm:=image1.ClientRect;
image1.Canvas.StretchDraw(mm,mybit);
end;
stretchdraw的意思是不是把mybit这个图像画到image1的mm这个矩形里面?