.TL
Pnmalias User Manual
.SH 1
pnmalias
.LP
Updated: 15 March 2004
.br
Table Of Contents
.SH 2
NAME
.LP
pnmalias - antialias a PNM image
.SH 2
SYNOPSIS
.LP
\fBpnmalias\fR
[\fB-bgcolor\fR \fIcolor\fR]
[\fB-fgcolor\fR \fIcolor\fR]
[\fB-bonly\fR]
[\fB-fonly\fR]
[\fB-balias\fR]
[\fB-falias\fR]
[\fB-weight\fR \fIw\fR]
[\fIpnmfile\fR]
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBpnmalias\fR reads a PNM image as input, and applies
anti-aliasing to background and foreground pixels. If the input file
is a PBM, \fBpnmalias\fR promots the output anti-aliased image to a
PGM, and prints a message informing the user of the change in format.
.SH 2
OPTIONS
.LP
.LP
\fB-bgcolor\fR \fIcolorb\fR sets the background color the
\fIcolorb\fR.
.LP
\fB-fgcolor\fR \fIcolorf\fR sets the foreground color to
\fIcolorf\fR.
.LP
Pixels with these values will be anti-aliased. By default,
\fBpnmalias\fR takes the background color to be black, and foreground
color to be white.
.LP
Specify the color (\fIcolor\fR) as described for the argument of the \fBppm_parsecolor()\fR
library routine.
.LP
Note that even when dealing with PGMs, background and foreground
colors need to be specified in the fashion described above. In this
case, \fBpnmalias\fR takes the background and foreground pixel values
to be the value of the red component for the specified color.
.LP
\fB-bonly\fR says to apply anti-aliasing only to the background pixels.
.LP
\fB-fonly\fR says to apply anti-aliasing only to the foreground pixels.
.LP
\fB-balias\fR says to apply anti-aliasing to all pixels surrounding
background pixels.
.LP
\fB-falias\fR says to apply anti-aliasing to all pixels surrounding
foreground pixels.
.LP
If you specify neither \fB-balias\fR nor \fB-falias\fR,
\fBpnmalias\fR applies anti-aliasing only among neighboring
background and foreground pixels.
.LP
\fB-weight\fR \fIw\fR says to use \fIw\fR as the central weight
for the aliasing filter. \fIw\fR must be a real number in the range
0 < \fIw\fR < 1. The lower the value of \fIw\fR is, the
"blurrier" the output image is. The default is w = 1/3.
.SH 2
SEE ALSO
.LP
pbmtext,
pnmsmooth,
pnm
.SH 2
AUTHOR
.LP
Copyright (C) 1992 by Alberto Accomazzi, Smithsonian Astrophysical Observatory.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
AUTHOR
.LP
|