home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / GhostScript / !GhostScr / 6_01 / lib / stocht.ps < prev    next >
Text File  |  2000-03-09  |  3KB  |  65 lines

  1. %    Copyright (C) 1999, 2000 Aladdin Enterprises.  All rights reserved.
  2. % This file is part of Aladdin Ghostscript.
  3. % Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. % or distributor accepts any responsibility for the consequences of using it,
  5. % or for whether it serves any particular purpose or works at all, unless he
  6. % or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. % License (the "License") for full details.
  8. % Every copy of Aladdin Ghostscript must include a copy of the License,
  9. % normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. % the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. % under certain conditions described in the License.  Among other things, the
  12. % License requires that the copyright notice and this notice be preserved on
  13. % all copies.
  14.  
  15. % $Id: stocht.ps,v 1.2 2000/03/10 03:34:44 lpd Exp $
  16. % helper file to simplify use of Stochastic Halftone - uses ht_ccsto.ps
  17.  
  18. % This file sets the /StochasticDefault /Halftone as the current
  19. % and the /Default halftoning, loading the Stochastic halftone
  20. % if required.
  21.  
  22. % Stochastic halftoning is recommended for inkjet printers, and may
  23. % produce output as pleasing as the more computationally expensive
  24. % "error diffusion" that *some* device drivers provide.
  25.  
  26. % For printing technologies other than inkjet, Stochastic halftoning
  27. % may not look better than standard screening. In particular, thermal
  28. % transfer and direct thermal tend to be better with standard ordered
  29. % screening methods. Some laser printers may produce "smoother"
  30. % looking gray shades with Stochastic halftoning. Try it, and if
  31. % you like it, use it.
  32.  
  33. % Note that this /Default halftone can be overridden by PostScript
  34. % operators that set the screening or halftone (such as setscreen).
  35.  
  36. % To make Stochastic Halftone be "sticky" so that other screening and
  37. % halftone setting in the subsequent PostScript will be ignored, use:
  38. %    -c "<< /HalftoneMode 1 >> setuserparams"
  39. % on the command line prior to the file to be processed. For example,
  40. %
  41. % gs stocht.ps -c "<< /HalftoneMode 1 >> setuserparams" -f examples/tiger.ps
  42.  
  43. % Alternatively, the command to set the /HalftoneMode userparam can be
  44. % concatenated to this file (see below).
  45.  
  46. % =====================================================================
  47. % Try to get the previously defined resource
  48. { /StochasticDefault /Halftone findresource } stopped
  49. {
  50.   pop pop
  51.   % Need to load the Stochastic Halftone using the lib file
  52.   (ht_ccsto.ps) runlibfile
  53. } if
  54.  
  55. % If we didn't error out by now, then go ahead and define the /Default
  56. /StochasticDefault /Halftone findresource
  57. /Default exch /Halftone defineresource
  58. sethalftone    % Use the halftone
  59.  
  60. % Uncomment the next line to make the Stocahstic halftoning be "sticky"
  61. % << /HalftoneMode 1 >> setuserparams
  62.