199 lines
3.9 KiB
HTML
199 lines
3.9 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of pnmalias</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>pnmalias</H1>
|
|
Section: User Commands (1)<BR>Updated: 30 April 1992<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
pnmalias - antialias a portable anyumap.
|
|
<A NAME="lbAC"> </A>
|
|
<H2>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>]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Reads a portable anymap as input, and applies anti-aliasing to background and
|
|
foreground pixels.
|
|
If the input file is a portable bitmap, the
|
|
output anti-aliased image is promoted to a graymap, and a message is printed
|
|
informing the user of the change in format.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
<B>-bgcolor </B>
|
|
|
|
<I>colorb,</I>
|
|
|
|
<B>-fgcolor</B>
|
|
|
|
<I>colorf</I>
|
|
|
|
<DL COMPACT><DT id="1"><DD>
|
|
set the background color to
|
|
<I>colorb,</I>
|
|
|
|
and the foreground to color to
|
|
<I>colorf.</I>
|
|
|
|
Pixels with these values will be anti-aliased. by default,
|
|
the background color is taken to be black, and foreground color
|
|
is assumed to be white.
|
|
The colors can be specified in five ways:
|
|
<DL COMPACT>
|
|
<DT id="2"><B>o</B>
|
|
|
|
<DD>
|
|
A name, assuming
|
|
that a pointer to an X11-style color names file was compiled in.
|
|
<DT id="3"><B>o</B>
|
|
|
|
<DD>
|
|
An X11-style hexadecimal specifier: rgb:r/g/b, where r g and b are
|
|
each 1- to 4-digit hexadecimal numbers.
|
|
<DT id="4"><B>o</B>
|
|
|
|
<DD>
|
|
An X11-style decimal specifier: rgbi:r/g/b, where r g and b are
|
|
floating point numbers between 0 and 1.
|
|
<DT id="5"><B>o</B>
|
|
|
|
<DD>
|
|
For backwards compatibility, an old-X11-style hexadecimal
|
|
number: #rgb, #rrggbb, #rrrgggbbb, or #rrrrggggbbbb.
|
|
<DT id="6"><B>o</B>
|
|
|
|
<DD>
|
|
For backwards compatibility, a triplet of numbers
|
|
separated by commas: r,g,b, where r g and b are
|
|
floating point numbers between 0 and 1.
|
|
(This style was added before MIT came up with the similar rgbi style.)
|
|
</DL>
|
|
<P>
|
|
|
|
Note that even when dealing with graymaps, background and foreground
|
|
colors need to be specified in the fashion described above.
|
|
In this case, background and foreground pixel values are taken to be the
|
|
value of the red component for the given color.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-bonly</B>,
|
|
|
|
<B>-fonly</B>
|
|
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Apply anti-aliasing only to background
|
|
(<B>-bonly</B>),
|
|
|
|
or foreground
|
|
(<B>-fonly</B>)
|
|
|
|
pixels.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-balias</B>,
|
|
|
|
<B>-falias</B>
|
|
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Apply anti-aliasing to all pixels surrounding background
|
|
(<B>-balias</B>),
|
|
|
|
or foreground
|
|
(<B>-falias</B>)
|
|
|
|
pixels. By default, anti-aliasing takes place only among neighboring
|
|
background and foreground pixels.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-weight</B>
|
|
|
|
<I>w</I>
|
|
|
|
<DL COMPACT><DT id="9"><DD>
|
|
Use
|
|
<I>w</I>
|
|
|
|
as the central weight for the aliasing filter.
|
|
<I>W </I>
|
|
|
|
must be a real number in the range
|
|
0 <
|
|
<I>w</I>
|
|
|
|
< 1.
|
|
The lower the value of
|
|
<I>w </I>
|
|
|
|
is, the "blurrier" the output image is. The default is w = 1/3.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+pbmtext">pbmtext</A>(1), <A HREF="/cgi-bin/man/man2html?1+pnmsmooth">pnmsmooth</A>(1), <A HREF="/cgi-bin/man/man2html?5+pnm">pnm</A>(5)
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Copyright (C) 1992 by Alberto Accomazzi, Smithsonian Astrophysical Observatory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="13"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="14"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="15"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:23 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|