blob: c07c1d968a7af79c5c27dd2e5e1e51c9235626b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
<!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>
<A NAME="lbAB"> </A>
<H2>NAME</H2>
ppmtopj - convert a PPM image to an HP PaintJet file
<A NAME="lbAC"> </A>
<H2>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>]
<A NAME="lbAD"> </A>
<H2>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 use
<pre>
ppmdither -red 2 -green 2 -blue 2
</pre>
<A NAME="lbAE"> </A>
<H2>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>
<A NAME="lbAG"> </A>
<H2>SEE ALSO</H2>
HP PaintJet XL Color Graphics Printer User's Guide,
<a href="pnmtopclxl.html"><b>pnmtopclxl.html</b></a>,
<a href="pjtoppm.html"><b>pjtoppm.html</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.html</b></a>,
<a href="ppmtopj.html"><b>ppmtolj</b></a>,
<a href="thinkjettopbm.html"><b>thinkjettopbm</b></a>,
<A HREF="ppm.html"><b>ppm</b></A>
<A NAME="lbAI"> </A>
<H2>AUTHOR</H2>
Copyright (C) 1991 by Christos Zoulas.
<HR>
<A NAME="index"> </A>
<H2>Table Of Contents</H2>
<UL>
<LI><A HREF="#lbAB">NAME</A>
<LI><A HREF="#lbAC">SYNOPSIS</A>
<LI><A HREF="#lbAD">DESCRIPTION</A>
<LI><A HREF="#lbAE">OPTIONS</A>
<LI><A HREF="#lbAG">SEE ALSO</A>
<LI><A HREF="#lbAI">AUTHOR</A>
</UL>
</BODY>
</HTML>
|