home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / graphics / 14212 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  1.6 KB

  1. Xref: sparky comp.graphics:14212 comp.windows.open-look:5157
  2. Newsgroups: comp.graphics,comp.windows.open-look
  3. Path: sparky!uunet!mcsun!sun4nl!tnofel!felfs!rioj7
  4. From: rioj7@fel.tno.nl (M.L.M.Veraart)
  5. Subject: Re: How to transfer pixel map file to ps?
  6. Organization: TNO Physics and Electronics Laboratory
  7. Date: Tue, 26 Jan 93 09:06:07 GMT
  8. Message-ID: <1993Jan26.090607.23613@fel.tno.nl>
  9. References: <1jhn56INNipo@geraldo.cc.utexas.edu>
  10. Lines: 44
  11.  
  12. zping@ccwf.cc.utexas.edu (Rubie) writes:
  13.  
  14. >Hi, everyone. 
  15.  
  16. >Here is my problem:
  17.  
  18. >I need to save an "image" (data type: XImage) to a postscript file
  19. >in order to print it out. The snapshot would not work because my image
  20. >dimensions are much bigger than one screen. How do I save it as 
  21. >raster file and then transfer to ps file? or is there a way I can
  22. >save it as ps file directly? 
  23.  
  24. >Thanks for your help in advance!!
  25.  
  26. Rubie,
  27.  
  28. In every book about PS you can find the information you want. You must
  29. use the PS function   image  .
  30. A sample PS file that prints 4 squares in greyscale
  31.  
  32. ----------
  33. %!PS
  34. %%EndComments
  35. /DataString 2 string def
  36. /IM {%def
  37.      gsave translate scale image grestore
  38.      
  39.      } bind def
  40. %%EndProlog
  41. 2 2 8 [ 2 0 0 2 0 0] { currentfile DataString readhexstring pop}
  42. 72 72 144 36 IM
  43. 14 28 3c ff
  44. showpage
  45. %%Trailer
  46. ----------
  47.  
  48. Hoping this is enough information.
  49.  
  50. Mario Veraart
  51. -- 
  52. Mario Veraart                  TNO Physics and Electronics Laboratory
  53. email: rioj7@fel.tno.nl        The Hague       The Netherlands
  54. "If all else fails, show pretty pictures and animated videos, 
  55.  and don't talk about performance",  David Bailey
  56.