home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!rigel.tamu.edu!emk9267
- From: emk9267@rigel.tamu.edu (KLINE, ERIC MICHAEL)
- Subject: printing graphics
- Message-ID: <17AUG199216535548@rigel.tamu.edu>
- News-Software: VAX/VMS VNEWS 1.41
- Sender: news@tamsun.tamu.edu (Read News)
- Organization: Texas A&M University, Academic Computing Services
- Date: Mon, 17 Aug 1992 21:53:00 GMT
- Lines: 38
-
- Howdy! I'm trying to learn how to send graphics to the printer. My very
- basic program is below:
-
- program PrintTest;
- uses
- macprint;
-
- var
- drawrect:rect;
- out_square:picHandle;
-
- begin
- showdrawing;
- getdrawingrect(drawrect);
- out_square:=openPicture(drawrect);
-
- moveto(10,10);
- lineto(100,10);
- lineto(100,100);
- lineto(10,100);
- lineto(10,10);
-
- closepicture;
- drawpicture(out_square,drawrect);
-
- killpicture(out_square);
- end
-
-
- I'm using a Mac+ and I have an ImageWriter II. I'm also using THINK Tech.'s
- LIGHTSPEED PASCAL V1.11. I've tried several things to try to get the
- graphics out to the printer, but all have failed. I'm looking for the code
- that will send a square generated with QUICKDRAW commands to the printer.
-
- Thanks in advance!
-
- Eric Kline
- emk9267@rigel.tamu.edu
-