| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN"> |
| 2 |
<html><head><title>Pnmalias User Manual</title></head> |
| 3 |
<body> |
| 4 |
<h1>pnmalias</h1> |
| 5 |
Updated: 15 March 2004 |
| 6 |
<br> |
| 7 |
<a href="#index">Table Of Contents</a> |
| 8 |
|
| 9 |
<h2>NAME</h2> |
| 10 |
|
| 11 |
pnmalias - antialias a PNM image |
| 12 |
|
| 13 |
<h2 id="synopsis">SYNOPSIS</h2> |
| 14 |
|
| 15 |
<b>pnmalias</b> |
| 16 |
|
| 17 |
[<b>-bgcolor</b> <i>color</i>] |
| 18 |
|
| 19 |
[<b>-fgcolor</b> <i>color</i>] |
| 20 |
|
| 21 |
[<b>-bonly</b>] |
| 22 |
|
| 23 |
[<b>-fonly</b>] |
| 24 |
|
| 25 |
[<b>-balias</b>] |
| 26 |
|
| 27 |
[<b>-falias</b>] |
| 28 |
|
| 29 |
[<b>-weight</b> <i>w</i>] |
| 30 |
|
| 31 |
[<i>pnmfile</i>] |
| 32 |
|
| 33 |
<h2 id="description">DESCRIPTION</h2> |
| 34 |
|
| 35 |
<p>This program is part of <a href="index.html">Netpbm</a>. |
| 36 |
|
| 37 |
<p><b>pnmalias</b> reads a PNM image as input, and applies |
| 38 |
anti-aliasing to background and foreground pixels. If the input file |
| 39 |
is a PBM, <b>pnmalias</b> promotes the output anti-aliased image to a |
| 40 |
PGM, and prints a message informing the user of the change in format. |
| 41 |
|
| 42 |
<h2 id="options">OPTIONS</h2> |
| 43 |
|
| 44 |
<p>In addition to the options common to all programs based on libnetpbm |
| 45 |
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions"> |
| 46 |
Common Options</a>), <b>pnmalias</b> recognizes the following |
| 47 |
command line options: |
| 48 |
|
| 49 |
<p><b>-bgcolor</b> <i>colorb</i> sets the background color the |
| 50 |
<i>colorb</i>. |
| 51 |
|
| 52 |
<p><b>-fgcolor</b> <i>colorf</i> sets the foreground color to |
| 53 |
<i>colorf</i>. |
| 54 |
|
| 55 |
<p>Pixels with these values will be anti-aliased. By default, |
| 56 |
<b>pnmalias</b> takes the background color to be black, and foreground |
| 57 |
color to be white. |
| 58 |
|
| 59 |
<p>Specify the color (<i>color</i>) as described for the <a |
| 60 |
href="libnetpbm_image.html#colorname">argument of the <b>pnm_parsecolor()</b> |
| 61 |
library routine</a>. |
| 62 |
|
| 63 |
<p>Note that even when dealing with PGMs, background and foreground |
| 64 |
colors need to be specified in the fashion described above. In this |
| 65 |
case, <b>pnmalias</b> takes the background and foreground pixel values |
| 66 |
to be the value of the red component for the specified color. |
| 67 |
|
| 68 |
<p><b>-bonly</b> says to apply anti-aliasing only to the background pixels. |
| 69 |
|
| 70 |
<p><b>-fonly</b> says to apply anti-aliasing only to the foreground pixels. |
| 71 |
|
| 72 |
<p><b>-balias</b> says to apply anti-aliasing to all pixels surrounding |
| 73 |
background pixels. |
| 74 |
|
| 75 |
<p><b>-falias</b> says to apply anti-aliasing to all pixels surrounding |
| 76 |
foreground pixels. |
| 77 |
|
| 78 |
<p>If you specify neither <b>-balias</b> nor <b>-falias</b>, |
| 79 |
<b>pnmalias</b> applies anti-aliasing only among neighboring |
| 80 |
background and foreground pixels. |
| 81 |
|
| 82 |
<p><b>-weight</b> <i>w</i> says to use <i>w</i> as the central weight |
| 83 |
for the aliasing filter. <i>w</i> must be a real number in the range |
| 84 |
0 < <i>w</i> < 1. The lower the value of <i>w</i> is, the |
| 85 |
"blurrier" the output image is. The default is w = 1/3. |
| 86 |
|
| 87 |
<h2 id="seealso">SEE ALSO</h2> |
| 88 |
|
| 89 |
<a href="pbmtext.html">pbmtext</a>, |
| 90 |
<a href="pnmsmooth.html">pnmsmooth</a>, |
| 91 |
<a href="pnm.html">pnm</a> |
| 92 |
|
| 93 |
<h2 id="author">AUTHOR</h2> |
| 94 |
|
| 95 |
Copyright (C) 1992 by Alberto Accomazzi, Smithsonian Astrophysical Observatory. |
| 96 |
|
| 97 |
<hr> |
| 98 |
<h2 id="index">Table Of Contents</h2> |
| 99 |
<ul> |
| 100 |
<li><a href="#synopsis">SYNOPSIS</a> |
| 101 |
<li><a href="#description">DESCRIPTION</a> |
| 102 |
<li><a href="#options">OPTIONS</a> |
| 103 |
<li><a href="#seealso">SEE ALSO</a> |
| 104 |
<li><a href="#author">AUTHOR</a> |
| 105 |
</ul> |
| 106 |
</body> |
| 107 |
</html> |