home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / postscri / 5539 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  2.1 KB

  1. Path: sparky!uunet!mcsun!uknet!mucs!lilleyc
  2. From: lilleyc@cs.man.ac.uk (Chris Lilley)
  3. Newsgroups: comp.lang.postscript
  4. Subject: Re: Converting X color (24 bits color) image to postscript.
  5. Keywords: Preview
  6. Message-ID: <6738@m1.cs.man.ac.uk>
  7. Date: 12 Nov 92 21:45:08 GMT
  8. References: <4078@sapwdf.UUCP> <1992Nov10.194925.15996@cc.umontreal.ca>
  9. Sender: newsman@cs.man.ac.uk
  10. Organization: Dept Computer Science, University of Manchester, U.K.
  11. Lines: 41
  12.  
  13. In article <1992Nov10.194925.15996@cc.umontreal.ca> latendrm@ERE.UMontreal.CA (Latendresse Mario) writes:
  14.  
  15. >I have been looking around to find a program to convert
  16. >images, dumped by the xwd program from a 24 bits color
  17. >display, into PostScript (Level 2).
  18.  
  19. Well converting it to a PS file that *prints* on a level 2 printer is
  20. one thing. Finding a program that *uses* the level 2 features is
  21. another. Were you thinking of the compression or the device
  22. independent colour aspects of Level 2?
  23.  
  24. Anyway, to make your file try:
  25.  
  26. xwd -nobdrs | xwdtopnm | pnmtops > file.ps (or pipe straight to your
  27. printer)
  28.  
  29. You may want to remove gamma correction from your ppm image before
  30. conversion to PS (printers don't need gamma correction).
  31.  
  32. Note that this process uses the simple minded (1-R)(1-G)(1-B) formula
  33. so the colours will be quite different in print from the screen.
  34.  
  35. If you want to use the Level 2 image operator and set up a calibrated
  36. RGB space you will need to know the RGB and white chromaticities of
  37. your monitor, and its gamma. 
  38.  
  39. Has anyone written a program that takes a ppm file and this info and
  40. generates a Level 2 PostScript representation like this? I understand
  41. what it has to do, but wouldn't call myself a programmer.
  42.  
  43.  
  44.  
  45.  
  46. --
  47. Chris Lilley
  48. ---------------------------------------------------------------------------
  49. Technical Author, ITTI Computer Graphics and Visualisation Training Project
  50. Computer Graphics Unit, Manchester Computing Centre, Manchester, UK
  51. Internet:   lilley@cgu.mcc.ac.uk        Janet:   lilley@uk.ac.mcc.cgu
  52. Voice:      +44 (0)61 275 6095          Fax:     +44 (0)61 275 6040
  53. ---------------------------------------------------------------------------
  54.