home *** CD-ROM | disk | FTP | other *** search
- From: bayes@hplvec.LVLD.HP.COM (Scott Bayes)
- Date: Tue, 1 Sep 1992 21:42:38 GMT
- Subject: Re: Re: GetKeys, Events, Sound Manager
- Message-ID: <830019@hplvec.LVLD.HP.COM>
- Organization: Hewlett-Packard Co., Loveland, CO
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!scd.hp.com!hplextra!hpfcso!hplvec!bayes
- Newsgroups: comp.sys.mac.programmer
- References: <1992Aug11.214555.19599@midway.uchicago.edu>
- Lines: 45
-
- I'm trying to get QuickBASIC Rev 1.00E (sys 7 compatible) to do high
- resolution printing on my DeskWriter. I have an SE. I can't get there
- from here.
-
- I have the graphics (LINE and TEXTBOX graphics) nicely on my CRT at 72
- dpi. Now, I want to send them to my DW at its highest resolution, using
- 1 or 2 pixel wide lines rather than the 1 point size on the screen. I'd
- like the picture to be about the same size as on the CRT, but to take
- advantage of the 300 dpi of the DW.
-
- If I just redirect the picture to LPT1:, it comes out at 72dpi in
- roughly WYSIWYG size. I want 300 dpi at the same size.
-
- I've tried
-
- OPEN "LPT1:" FOR OUTPUT AS #2
- WINDOW OUTPUT #2 ' to use printer resolution
- PICTURE ON
- CALL PENSIZE(1,1)
-
- <draw picture scaling everything up by factor of 4 [300dpi/72dpi]>
-
- PICTURE OFF
- CLOSE #2
-
- This seems to send the picture to the printer right away (I thought it
- was redirected to PICTURE$ instead). If I now do
-
- Image$=PICTURE$
- OPEN "LPT1:" FOR OUTPUT AS #2
- WINDOW OUTPUT #2
- PICTURE (0,0)-(506,295),Image$ ' default coords of QB output window on SE
-
- I expect the picture to be printed scaled down 4x so it's the same size
- (96%) as on the screen, but rendered to the resolution of the DW
- (300dpi). Instead, I get something about 4 times as big as I expect,
- with 1 point lines, seemingly smoothed to 300 dpi, but with line
- endpoints on a 72 dpi grid. Text done with TEXTBOX is the right size.
-
- It's as though LINE in QB worked in points rather than pixels, and
- PICTURE did not rescale the Image$ to the rectangle specified.
-
- Can anyone help?
-
- ScottB
-