about summary refs log tree commit diff
path: root/pgmramp.html
blob: 1e1bc0b33a0f5ec31fc55307a170aa88c07988be (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><title>Pgmramp User Manual</title>
</HEAD><BODY>
<H1>pgmramp</H1>
Updated: 04 June 2002
<BR>
<A HREF="#index">Table Of Contents</A>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

pgmramp - generate a grayscale ramp

<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>pgmramp</B>
<B>-lr</B>|<B>-tb</B>|<B>-rectangle</B>|<B>-ellipse</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.

<A NAME="lbAD">&nbsp;</A>
<H2>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>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.


<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>

You must specify exactly one of the ramp type options.
<DL COMPACT>
<DT><B>-lr</B>
<DD>
A left to right ramp.

<DT><B>-tb</B>
<DD>
A top to bottom ramp.

<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>-maxval=</b><i>maxval</i>
<DD>
     The maxval for the generated image.  Default is 255.
<p>
     This option did not exist before June 2002.  Before, the maxval was
     always 255.
     
</DL>


<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>

<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>
<A NAME="index">&nbsp;</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="#lbAF">SEE ALSO</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>