home *** CD-ROM | disk | FTP | other *** search
/ jppd.dyndns.org / jppd.dyndns.org.tar / jppd.dyndns.org / QUERYPRO / Impressora_PDF / converter.exe / GPLGS / stocht.ps < prev    next >
Text File  |  2002-02-22  |  3KB  |  63 lines

  1. %    Copyright (C) 1999, 2000 artofcode LLC.  All rights reserved.
  2. % This software is provided AS-IS with no warranty, either express or
  3. % implied.
  4. % This software is distributed under license and may not be copied,
  5. % modified or distributed except as expressly authorized under the terms
  6. % of the license contained in the file LICENSE in this distribution.
  7. % For more information about licensing, please refer to
  8. % http://www.ghostscript.com/licensing/. For information on
  9. % commercial licensing, go to http://www.artifex.com/licensing/ or
  10. % contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. % San Rafael, CA  94903, U.S.A., +1(415)492-9861.
  12.  
  13. % $Id: stocht.ps,v 1.6 2002/02/21 21:49:28 giles Exp $
  14. % helper file to simplify use of Stochastic Halftone - uses ht_ccsto.ps
  15.  
  16. % This file sets the /StochasticDefault /Halftone as the current
  17. % and the /Default halftoning, loading the Stochastic halftone
  18. % if required.
  19.  
  20. % Stochastic halftoning is recommended for inkjet printers, and may
  21. % produce output as pleasing as the more computationally expensive
  22. % "error diffusion" that *some* device drivers provide.
  23.  
  24. % For printing technologies other than inkjet, Stochastic halftoning
  25. % may not look better than standard screening. In particular, thermal
  26. % transfer and direct thermal tend to be better with standard ordered
  27. % screening methods. Some laser printers may produce "smoother"
  28. % looking gray shades with Stochastic halftoning. Try it, and if
  29. % you like it, use it.
  30.  
  31. % Note that this /Default halftone can be overridden by PostScript
  32. % operators that set the screening or halftone (such as setscreen).
  33.  
  34. % To make Stochastic Halftone be "sticky" so that other screening and
  35. % halftone setting in the subsequent PostScript will be ignored, use:
  36. %    -c "<< /HalftoneMode 1 >> setuserparams"
  37. % on the command line prior to the file to be processed. For example,
  38. %
  39. % gs stocht.ps -c "<< /HalftoneMode 1 >> setuserparams" -f examples/tiger.eps
  40.  
  41. % Alternatively, the command to set the /HalftoneMode userparam can be
  42. % concatenated to this file (see below).
  43.  
  44. % =====================================================================
  45. % Try to get the previously defined resource
  46. { /StochasticDefault /Halftone findresource } stopped
  47. {
  48.   pop pop
  49.   % Need to load the Stochastic Halftone using the lib file
  50.   (ht_ccsto.ps) runlibfile
  51. } if
  52.  
  53. % If we didn't error out by now, then go ahead and define the /Default
  54. /StochasticDefault /Halftone findresource
  55. /Default exch /Halftone defineresource
  56. sethalftone    % Use the halftone
  57.  
  58. % Uncomment the next line to make the Stocahstic halftoning be "sticky"
  59. % << /HalftoneMode 1 >> setuserparams
  60.