home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 February / INTERNET88.ISO / pc / software / windows / bits / pdf995 / data1.cab / Program_Executable_Files / res / stocht.ps < prev    next >
Encoding:
Text File  |  2001-12-08  |  2.9 KB  |  66 lines

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