home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14878 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.9 KB

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