<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Ppmtopj User Manual</TITLE>
</HEAD><BODY>
<H1>ppmtopj</H1>
Updated: 13 July 1991
<BR>
<A HREF="#index">Table Of Contents</A>
<H2>NAME</H2>
ppmtopj - convert a PPM image to an HP PaintJet file
<H2 id="synopsis">SYNOPSIS</H2>
<B>ppmtopj</B>
[<b>-gamma</b> <I>val</I>]
[<B>-xpos</B> <I>val</I>]
[<B>-ypos</B> <I>val</I>]
[<B>-back</B> {<B>dark</B>|<B>lite</B>}]
[<B>-rle</B>]
[<B>-center</B>]
[<B>-render</B> {
<B>none</b> |
<b>snap</b> |
<b>bw</b> |
<b>dither</b> |
<b>diffuse</b> |
<b>monodither</b> |
<b>monodiffuse</b> |
<b>clusterdither</b> |
<b>monoclusterdither</B>
}]
[<I>ppmfile</I>]
<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
<P><b>ppmtopj</b> reads a PPM image as input and converts it into a
format suitable to be printed by an HP PaintJet printer.
<P>
For best results, the input file should be in 8-color RGB form;
i.e. it should have only
the 8 binary combinations of full-on and full-off primaries.
You could convert your input to this format like this:
<pre>
pamseq 3 1 testimg.ppm >8color.pam
pnmremap -map 8color.pam testimg.pam | ppmtopj
</pre>
Or you could use
<pre>
ppmdither -red 2 -green 2 -blue 2
</pre>
<H2 id="options">OPTIONS</H2>
<DL COMPACT>
<DT><B>-rle</B>
<DD>
Run length encode the image.
(This can result in larger images)
<DT><B>-back</B>
<DD>
Enhance the foreground by indicating if the background is light or
dark compared to the foreground.
<DT><B>-render</B> <I>alg</I>
<DD>
Use an internal rendering algorithm (default dither).
<DT><B>-gamma</B> <I>int</I>
<DD>
Gamma correct the image using the integer <i>int</i> as a gamma (default 0).
<DT><B>-center</B>
<DD>
Center the image to an 8.5 by 11 page
<DT><B>-xpos</B> <I>pos</I>
<DD>
Move by <i>pos</i> pixels in the x direction.
<DT><B>-ypos</B> <I>pos</I>
<DD>
Move by <i>pos</i> pixels in the y direction.
</DL>
<H2 id="seealso">SEE ALSO</H2>
HP PaintJet XL Color Graphics Printer User's Guide,
<a href="pnmtopclxl.html"><b>pnmtopclxl</b></a>,
<a href="pjtoppm.html"><b>pjtoppm</b></a>,
<A href="pamdepth.html"><b>pamdepth</b></A>,
<A HREF="pnmremap.html"><b>pnmremap</b></A>,
<A HREF="pamseq.html"><b>pamseq</b></A>,
<A HREF="ppmdither.html"><b>ppmdither</b></A>,
<a href="pbmtolj.html"><b>pbmtolj</b></a>,
<a href="ppmtolj.html"><b>ppmtolj</b></a>,
<a href="ppmtopjxl.html"><b>ppmtopjxl</b></a>,
<a href="thinkjettopbm.html"><b>thinkjettopbm</b></a>,
<A HREF="ppm.html"><b>ppm</b></A>
<H2 id="author">AUTHOR</H2>
Copyright (C) 1991 by Christos Zoulas.
<HR>
<H2 id="index">Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#options">OPTIONS</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>