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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><title>Pgmramp User Manual</title>
</HEAD><BODY>
<H1>pgmramp</H1>
Updated: 15 February 2014
<BR>
<A HREF="#index">Table Of Contents</A>
<H2>NAME</H2>
pgmramp - generate a grayscale ramp
<H2 id="synopsis">SYNOPSIS</H2>
<B>pgmramp</B>
{<B>-lr</B>|<B>-tb</B>|<B>-rectangle</B>|<B>-ellipse</B>|<b>-diagonal</b>}
[<b>-maxval=</b><i>maxval</i>]
<I>width</i> <i>height</I>
<P>All options can be abbreviated to their shortest unique prefix.
You may use two hyphens instead of one to designate an option. You
may use either white space or an equals sign between an option name
and its value.
<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
<p>Generates a graymap of the specified size containing a
black-to-white ramp. These ramps are useful for multiplying with
other images, using <b>pamarith</b>.
<p>The ramp is linear in brightness, not intensity. I.e. the
gamma-corrected sample values in the PGM rise linearly with distance
from the corner of the image. If you want a ramp that is linear in
light intensity, use <b>pnmgamma</b> with <b>pgmramp</b>.
<p>Options let you choose the shape of the ramp (left to right, inside
out, etc.). You can use <b>pamflip</b> to get more shapes. For
example, the <b>-lr</b> option gives you a left to right ramp and
<pre>
<kbd>
$ pgmramp -lr 100 100 | pamflip -lr
</kbd>
</pre>
gives you a right to left ramp.
<P>To generate a simple ramp of all the values from 0 to maxval, and not
necessarily a graphic image, use <b><a href="pamseq.html">pamseq</a></b>.
<p><b>ppmrainbow</b> does something similar to what <b>pgmramp</b> does,
but for color. The image fades between two colors of your choice.
<H2 id="options">OPTIONS</H2>
You must specify exactly one of the ramp type options.
<DL COMPACT>
<DT><B>-lr</B>
<DD>
A left to right ramp. Black on the left; white on the right.
<DT><B>-tb</B>
<DD>
A top to bottom ramp. Black on top; white on the bottom.
<DT><B>-rectangle</B>
<DD>
An outside-in rectangular ramp. It is black around the edges and white
in the center.
<DT><B>-ellipse</B>
<DD>
An outside-in elliptical ramp. It is black around the edge and white
in the center.
<DT><B>-diagonal</B>
<DD>
A ramp from top left corner diagonally down to bottom right. Black at
the top left; white at the bottom right.
<p>
This option was new in Netpbm 10.66 (March 2014).
<DT><b>-maxval=</b><i>maxval</i>
<DD>
The maxval for the generated image. Default is 255.
<p>
This option was new in Netpbm 10.1 (June 2002). Before that, the maxval
is always 255.
</DL>
<H2 id="seealso">SEE ALSO</H2>
<A HREF="pamflip.html"><b>pamflip</b></A>,
<A HREF="pamarith.html"><b>pamarith</b></A>,
<A HREF="pnmgamma.html"><b>pnmgamma</b></A>,
<A HREF="pamseq.html"><b>pamseq</b></A>,
<A HREF="ppmrainbow.html"><b>ppmrainbow</b></A>,
<A HREF="pamgradient.html"><b>pamgradient</b></A>,
<A HREF="pgm.html">pgm</A>
<H2 id="author">AUTHOR</H2>
Copyright (C) 1989 by Jef Poskanzer.
<HR>
<H2 id="index">Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#optoins">OPTIONS</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>
|