L
lncd
Unregistered / Unconfirmed
GUEST, unregistred user!
//激光打印机。Samsung ML-4500 Series
procedure TForm1.Button2Click(Sender: TObject);
var
rect:TRect;
begin
with rectdo
begin
left:=200;
top:=200;
right:=400;
bottom:=400;
end;
printer.begin
Doc;
printer.Canvas.stretchdraw(rect,Image1.Picture.Graphic);
printer.EndDoc;
Image1.Picture.Graphic.SaveToFile('c:/aa.bmp');
end;
procedure TForm1.Button2Click(Sender: TObject);
var
rect:TRect;
begin
with rectdo
begin
left:=200;
top:=200;
right:=400;
bottom:=400;
end;
printer.begin
Doc;
printer.Canvas.stretchdraw(rect,Image1.Picture.Graphic);
printer.EndDoc;
Image1.Picture.Graphic.SaveToFile('c:/aa.bmp');
end;