122 lines
2.8 KiB
HTML
122 lines
2.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of ppmtopcx</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>ppmtopcx</H1>
|
|
Section: User Commands (1)<BR>Updated: 12 December 1994<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="ixAAB"></A>
|
|
<P>
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ppmtopcx - convert a portable pixmap into a PCX file
|
|
<P>
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>ppmtopcx</B>
|
|
|
|
[<B>-24bit</B>]
|
|
|
|
[<B>-packed</B>]
|
|
|
|
[<B>-xpos=</B><I>cols</I>]
|
|
|
|
[<B>-ypos=</B><I>rows</I>]
|
|
|
|
[<I>ppmfile</I>]
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Reads a PPM image as input. Produces a PCX file as output.
|
|
<A NAME="ixAAC"></A>
|
|
The type of the PCX file depends on the number of colors in the pixmap:
|
|
<DL COMPACT>
|
|
<DT id="1">16 colors or less:<DD>
|
|
1 bit/pixel, 1-4 planes.
|
|
<DT id="2">256 colors or less:<DD>
|
|
8 bits/pixel, 1 plane, colormap at the end of the file.
|
|
<DT id="3">More than 256 colors:<DD>
|
|
24bit truecolor file (8 bits/pixel, 3 planes).
|
|
</DL>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="4"><B>-24bit</B>
|
|
|
|
<DD>
|
|
Produce a 24bit truecolor file, even if the pixmap has 256 colors or less.
|
|
<DT id="5"><B>-packed</B>
|
|
|
|
<DD>
|
|
Use "packed pixel" format for files with 16 colors or less: 1, 2, or 4
|
|
bits/pixel, 1 plane.
|
|
<DT id="6"><B>-xpos=</B><I>cols</I>
|
|
|
|
<DD>
|
|
<DT id="7"><B>-ypos=</B><I>rows</I>
|
|
|
|
<DD>
|
|
These options set the position of the image in some field (e.g. on a screen)
|
|
in columns to the right of the left edge and rows below the top edge.
|
|
The PCX format contains image position information. Don't confuse this
|
|
with the position of an area of interest within the image. For example,
|
|
using
|
|
<B>pnmpad</B>
|
|
|
|
to add a 10 pixel left border to an image and then converting that image to PCX
|
|
with xpos = 0 is not the same as converting the original image to PCX and
|
|
setting xpos = 10.
|
|
<P>
|
|
The values may be from -32767 to 32768.
|
|
<P>
|
|
The default for each is zero.
|
|
<P>
|
|
<P>
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pcxtoppm">pcxtoppm</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+ppm">ppm</A></B>(5)
|
|
|
|
<P>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
Copyright (C) 1994 by Ingo Wilken (<A HREF="mailto:Ingo.Wilken@informatik.uni-oldenburg.de">Ingo.Wilken@informatik.uni-oldenburg.de</A>)
|
|
<BR>
|
|
|
|
Based on previous work by Michael Davidson.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="8"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="9"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="10"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="11"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="12"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
<DT id="13"><A HREF="#lbAG">AUTHORS</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>
|