]> git.lizzy.rs Git - plan9front.git/blob - sys/lib/ghostscript/stocht.ps
etherbcm: handle 64-bit host addresses, use PCIWADDR() instead of PADDR()
[plan9front.git] / sys / lib / ghostscript / stocht.ps
1 %    Copyright (C) 1999, 2000 artofcode LLC.  All rights reserved.
2
3 % This software is provided AS-IS with no warranty, either express or
4 % implied.
5
6 % This software is distributed under license and may not be copied,
7 % modified or distributed except as expressly authorized under the terms
8 % of the license contained in the file LICENSE in this distribution.
9
10 % For more information about licensing, please refer to
11 % http://www.ghostscript.com/licensing/. For information on
12 % commercial licensing, go to http://www.artifex.com/licensing/ or
13 % contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14 % San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15
16 % $Id: stocht.ps,v 1.6 2002/02/21 21:49:28 giles Exp $
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.eps
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