summary refs log tree commit diff
path: root/pnmalias.html
blob: bfcd506da23cfeafce0e6c1dc4c7a04362490b83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Pnmalias User Manual</title></head>
<body>
<h1>pnmalias</h1>
Updated: 15 March 2004
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>

pnmalias - antialias a PNM image

<h2 id="synopsis">SYNOPSIS</h2>

<b>pnmalias</b>

[<b>-bgcolor</b> <i>color</i>]

[<b>-fgcolor</b> <i>color</i>]

[<b>-bonly</b>]

[<b>-fonly</b>]

[<b>-balias</b>]

[<b>-falias</b>]

[<b>-weight</b> <i>w</i>]

[<i>pnmfile</i>]

<h2 id="description">DESCRIPTION</h2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>pnmalias</b> reads a PNM image as input, and applies
anti-aliasing to background and foreground pixels.  If the input file
is a PBM, <b>pnmalias</b> promotes the output anti-aliased image to a
PGM, and prints a message informing the user of the change in format.

<h2 id="options">OPTIONS</h2>

<p>In addition to the options common to all programs based on libnetpbm
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
Common Options</a>), <b>pnmalias</b> recognizes the following
command line options:

<p><b>-bgcolor</b> <i>colorb</i> sets the background color the
<i>colorb</i>.

<p><b>-fgcolor</b> <i>colorf</i> sets the foreground color to
<i>colorf</i>.

<p>Pixels with these values will be anti-aliased.  By default,
<b>pnmalias</b> takes the background color to be black, and foreground
color to be white.

<p>Specify the color (<i>color</i>) as described for the <a
href="libnetpbm_image.html#colorname">argument of the <b>pnm_parsecolor()</b>
library routine</a>.

<p>Note that even when dealing with PGMs, background and foreground
colors need to be specified in the fashion described above.  In this
case, <b>pnmalias</b> takes the background and foreground pixel values
to be the value of the red component for the specified color.

<p><b>-bonly</b> says to apply anti-aliasing only to the background pixels.

<p><b>-fonly</b> says to apply anti-aliasing only to the foreground pixels.

<p><b>-balias</b> says to apply anti-aliasing to all pixels surrounding
background pixels.

<p><b>-falias</b> says to apply anti-aliasing to all pixels surrounding
foreground pixels.

<p>If you specify neither <b>-balias</b> nor <b>-falias</b>,
<b>pnmalias</b> applies anti-aliasing only among neighboring
background and foreground pixels.

<p><b>-weight</b> <i>w</i> says to use <i>w</i> as the central weight
for the aliasing filter.  <i>w</i> must be a real number in the range
0 &lt; <i>w</i> &lt; 1.  The lower the value of <i>w</i> is, the
"blurrier" the output image is.  The default is w = 1/3.

<h2 id="seealso">SEE ALSO</h2>

<a href="pbmtext.html">pbmtext</a>,
<a href="pnmsmooth.html">pnmsmooth</a>,
<a href="pnm.html">pnm</a>

<h2 id="author">AUTHOR</h2>

Copyright (C) 1992 by Alberto Accomazzi, Smithsonian Astrophysical Observatory.

<hr>
<h2 id="index">Table Of Contents</h2>
<ul>
<li><a href="#synopsis">SYNOPSIS</a>
<li><a href="#description">DESCRIPTION</a>
<li><a href="#options">OPTIONS</a>
<li><a href="#seealso">SEE ALSO</a>
<li><a href="#author">AUTHOR</a>
</ul>
</body>
</html>