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

131 lines
2.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of ppmtobmp</TITLE>
</HEAD><BODY>
<H1>ppmtobmp</H1>
Section: User Commands (1)<BR>Updated: 13 June 2000<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>
ppmtobmp - convert a portable pixmap into a BMP file
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>ppmtobmp</B>
[<B>-windows</B>]
[<B>-os2</B>]
[<B>-bpp=</B><I>bits_per_pixel</I>]
[<I>ppmfile</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
Reads a portable pixmap as input.
Produces a Microsoft Windows or OS/2 BMP file as output.
<A NAME="ixAAC"></A>
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
All options can be abbreviated to their shortest unique prefix and you
can use a double dash in place of the single dash, GNU-style.
<DL COMPACT>
<DT id="1"><B>-windows</B>
<DD>
Tells the program to produce a Microsoft Windows BMP file.
(This is the default.)
<DT id="2"><B>-os2</B>
<DD>
Tells the program to produce an OS/2 BMP file.
(Before August 2000, this was the default).
<DT id="3"><B>-bpp</B>
<DD>
This determines how many bits per pixel you want the BMP file to contain.
Only 1, 4, 8, and 24 are possible. By default,
<B>ppmtobmp</B>
chooses the smallest number with which it can represent all the colors
in the input image. If you specify a number too small to represent all
the colors in the input image,
<B>ppmtobmp</B>
tells you and terminates. You can use
<B>ppmquant</B>
or
<B>ppmdither</B>
to reduce the number of colors in the image.
<P>
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>NOTES</H2>
To get a faithful reproduction of the input image, the maxval of the
input image must be 255. If it is something else,
<B>ppmtobmp</B>
the colors in the BMP file may be slightly different from the colors
in the input.
<P>
Windows icons are not BMP files. Use
<B>ppmtowinicon</B>
to create those.
<P>
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?1+bmptoppm">bmptoppm</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+ppmtowinicon">ppmtowinicon</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+ppmquant">ppmquant</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+ppmdither">ppmdither</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A></B>(5)
<P>
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
Copyright (C) 1992 by David W. Sanderson.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="7"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="8"><A HREF="#lbAF">NOTES</A><DD>
<DT id="9"><A HREF="#lbAG">SEE ALSO</A><DD>
<DT id="10"><A HREF="#lbAH">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:25 GMT, March 31, 2021
</BODY>
</HTML>