home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.graphics:14212 comp.windows.open-look:5157
- Newsgroups: comp.graphics,comp.windows.open-look
- Path: sparky!uunet!mcsun!sun4nl!tnofel!felfs!rioj7
- From: rioj7@fel.tno.nl (M.L.M.Veraart)
- Subject: Re: How to transfer pixel map file to ps?
- Organization: TNO Physics and Electronics Laboratory
- Date: Tue, 26 Jan 93 09:06:07 GMT
- Message-ID: <1993Jan26.090607.23613@fel.tno.nl>
- References: <1jhn56INNipo@geraldo.cc.utexas.edu>
- Lines: 44
-
- zping@ccwf.cc.utexas.edu (Rubie) writes:
-
- >Hi, everyone.
-
- >Here is my problem:
-
- >I need to save an "image" (data type: XImage) to a postscript file
- >in order to print it out. The snapshot would not work because my image
- >dimensions are much bigger than one screen. How do I save it as
- >raster file and then transfer to ps file? or is there a way I can
- >save it as ps file directly?
-
- >Thanks for your help in advance!!
-
- Rubie,
-
- In every book about PS you can find the information you want. You must
- use the PS function image .
- A sample PS file that prints 4 squares in greyscale
-
- ----------
- %!PS
- %%EndComments
- /DataString 2 string def
- /IM {%def
- gsave translate scale image grestore
-
- } bind def
- %%EndProlog
- 2 2 8 [ 2 0 0 2 0 0] { currentfile DataString readhexstring pop}
- 72 72 144 36 IM
- 14 28 3c ff
- showpage
- %%Trailer
- ----------
-
- Hoping this is enough information.
-
- Mario Veraart
- --
- Mario Veraart TNO Physics and Electronics Laboratory
- email: rioj7@fel.tno.nl The Hague The Netherlands
- "If all else fails, show pretty pictures and animated videos,
- and don't talk about performance", David Bailey
-