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