home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / graphics / 8164 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  2.7 KB

  1. Xref: sparky comp.graphics:8164 comp.windows.x.pex:415 comp.lang.postscript:4080
  2. Path: sparky!uunet!mcsun!uknet!mucs!lilleyc
  3. From: lilleyc@cs.man.ac.uk (Chris Lilley)
  4. Newsgroups: comp.graphics,comp.windows.x.pex,comp.lang.postscript
  5. Subject: Re: Postscript output of phigs
  6. Message-ID: <5466@m1.cs.man.ac.uk>
  7. Date: 26 Jul 92 22:39:21 GMT
  8. References: <20205@sbsvax.cs.uni-sb.de>
  9. Sender: news@cs.man.ac.uk
  10. Reply-To: lilleyc@cs.man.ac.uk (Chris Lilley)
  11. Followup-To: comp.graphics
  12. Organization: Department of Computer Science, University of Manchester UK
  13. Lines: 57
  14.  
  15. In article <20205@sbsvax.cs.uni-sb.de> et11ltab@sbusol.rz.uni-sb.de (Alexander Bachmann) writes:
  16.  
  17. >Hello all,
  18. >I want to create postscript files of phigs-graphics. Does anybody know
  19. >how to do this? Please reply via e-mail
  20. >Thanx in advance,
  21.  
  22. Well that rather depends on what implementation you are using. If the
  23. vendor supplies a PostScript workstation type, the usual routine is
  24.  
  25. a) Open your screen workstation, draw stuff, fiddle with valuators and so
  26. on to get the positioning, angle, zoom and so on just so
  27.  
  28. b) Open a PostScript workstation
  29.  
  30. c) copy the viewing parameters to the new workstation
  31.  
  32. d) Post all the relevant structures to the new workstation
  33.  
  34. e) Close up the workstations and print or view the file.
  35.  
  36. Some problems: the HLHSR modes implemented for the PostScript workstation
  37. might not be the same as for your screen. For example, DEC PHIGS implements
  38. Z buffering (only) for PEX workstations, and Painters algorithm (only) for
  39. PostScript. Thus, you can generate some but not all pictures - some display
  40. incorrectly with Painters.
  41.  
  42. You also may not be able to do some enquiries to a PostScript workstation,
  43. because it is not running the PostScript interpreter at the time PHIGS is
  44. running (usually). So for example, positioning text by enquiring the text
  45. extent might not work.
  46.  
  47. (Do any vendors PHIGS implementations support a Display PostScript
  48. workstation type?)
  49.  
  50. If your PHIGS implementation does not support PostScript directly, there
  51. are two other possibilities (well, three ;-)
  52.  
  53. * Output some other file type which can be converted to PostScript by
  54. another package. For example, CGM, or DXF, or any other CAD type format
  55.  
  56. * Grab the screen and stick the result into a PostScript file as a
  57. bitmapped image - low resolution, but could be ok depending on your
  58. application. 
  59.  
  60.  xwd -nodbrs |xwdtopnm |ppmtorle|rleflip -v|rleswap -t 2,1,0|rletops >file
  61.  
  62. is one incantation that will do this, for example. Or for a lower quality,
  63. 8 bit only solution, try the screen grab function of XV.  Both these
  64. examples are for X windows. 
  65.  
  66. The third solution is to implement a PostScript workstation type yourself.
  67. Hence the ironic smiley ;-)
  68.  
  69. >Alex
  70.  
  71. Chris
  72.