man-pages/man1/ppmdither.1.html
2021-03-31 01:06:50 +01:00

106 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of ppmdither</TITLE>
</HEAD><BODY>
<H1>ppmdither</H1>
Section: User Commands (1)<BR>Updated: 14 July 1991<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">&nbsp;</A>
<H2>NAME</H2>
ppmdither - ordered dither for color images
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>ppmdither</B>
[<B>-dim</B>
<I>power</I>]
[<B>-red</B>
<I>shades</I>]
[<B>-green</B>
<I>shades</I>]
[<B>-blue</B>
<I>shades</I>]
[<I>ppmfile</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
Reads a portable pixmap as input, and applies dithering to it to reduce
the number of colors used down to the specified number of shades for
each primary.
The default number of shades is red=5, green=9, blue=5, for
a total of 225 colors.
To convert the image to a binary rgb format
suitable for color printers, use -red 2 -green 2 -blue 2.
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-dim</B><I> power</I>
<DD>
The size of the dithering matrix. The dithering matrix is a square whose
dimension is a power of 2.
<I>power</I>
is that power of 2. The default is 4, for a 16 by 16 matrix.
<DT id="2"><B>-red</B><I> shades</I>
<DD>
The number of red shades to be used, including black; minimum of 2.
<DT id="3"><B>-green</B><I> shades</I>
<DD>
The number of green shades to be used, including black; minimum of 2.
<DT id="4"><B>-blue</B><I> shades</I>
<DD>
The number of blue shades to be used, including black; minimum of 2.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?1+pnmdepth">pnmdepth</A>(1), <A HREF="/cgi-bin/man/man2html?1+ppmquant">ppmquant</A>(1), <A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A>(5)
<A NAME="lbAG">&nbsp;</A>
<H2>AUTHOR</H2>
Copyright (C) 1991 by Christos Zoulas.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="8"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="9"><A HREF="#lbAF">SEE ALSO</A><DD>
<DT id="10"><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:24 GMT, March 31, 2021
</BODY>
</HTML>