home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6453 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.7 KB  |  52 lines

  1. Newsgroups: comp.lang.postscript
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!mentor.cc.purdue.edu!news
  3. From: ab@nova.cc.purdue.edu (Allen B)
  4. Subject: Re: color-separation
  5. Message-ID: <C1FDM0.IC8@mentor.cc.purdue.edu>
  6. Sender: news@mentor.cc.purdue.edu (USENET News)
  7. Organization: Purdue University
  8. References: <OIY0JFR@math.fu-berlin.de>
  9. Date: Mon, 25 Jan 1993 19:46:47 GMT
  10. Lines: 40
  11.  
  12. In article <OIY0JFR@math.fu-berlin.de> landgraf@hrz-serv7.hrz.uni-kassel.de  
  13. (Landgraf Thomas  FB16   ) writes:
  14. > Hi,
  15. > does anyone know how I can extract the CMYK intensities of a 
  16. > PS picture. One idea was to set something like a transfer function.
  17. > So it'll be possible to extract the other colors, but there is no
  18. > such function in PostScript Level 1 -- is thete one in Level 2 ?
  19.  
  20. If you're not worried about image and colorimage calls,
  21. you can just redefine setcmykcolor (and the other
  22. related commands) to just do what you want.  Note that this
  23. is not always a great idea because the color seps might not
  24. be useful.  You'll want to muck with the halftone screen as
  25. well. 
  26.  
  27. The basic idea is that you do something like:
  28.  
  29. /setcmykcolor
  30. {
  31.     pop pop pop setgray
  32. } def
  33.  
  34. To do a cyan separation (and similar things for the other
  35. primaries) and then you muck the screen to be whatever you
  36. need.  setrgbcolor can be rigged similarly: 
  37.  
  38. /setrgbcolor
  39. {
  40.     realsetrgbcolor currentcmykcolor setcmykcolor
  41. } def
  42.  
  43. I do something similar here for two-color jobs to strip
  44. out one or the other color.  It works, but trapping,
  45. registration, and other factors can be a bear depending
  46. on your application.
  47.  
  48. (image and colorimage calls should probably be handled
  49. external to PostScript for those reasons.) 
  50.  
  51. ab
  52.