home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega A/V
/
mega_av.zip
/
mega_av
/
GRAPHUTL
/
PBMPLUS.ZIP
/
PGMTOPPM.MAN
< prev
next >
Wrap
Text File
|
1991-08-11
|
2KB
|
67 lines
pgmtoppm(1) Unix Programmer's Manual pgmtoppm(1)
NNNAAAMMMEEE
pgmtoppm - colorize a portable graymap into a portable pixmap
SSSYYYNNNOOOPPPSSSIIISSS
pppgggmmmtttoooppppppmmm _c_o_l_o_r_s_p_e_c [_p_g_m_f_i_l_e]
pppgggmmmtttoooppppppmmm _c_o_l_o_r_s_p_e_c_1-_c_o_l_o_r_s_p_e_c_2 [_p_g_m_f_i_l_e]
pppgggmmmtttoooppppppmmm ---mmmaaappp _m_a_p_f_i_l_e [_p_g_m_f_i_l_e]
DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
Reads a portable graymap as input. Colorizes it by multiplying the the
gray values by specified color or colors, and produces a portable pixmap
as output.
If only one color is specified, black in the pgm file stays black and
white in the pgm file turns into the specified color in the ppm file. If
two colors (separated by a dash) are specified, then black gets mapped to
the first color and white gets mapped to the second.
The colors can be specified in three ways. One, as a name, assuming that
a pointer to an X11-style color names file was compiled in. Two, as an
X11-style hexidecimal number: #rgb, #rrggbb, #rrrgggbbb, or
#rrrrggggbbbb. Three, as a triplet of decimal floating point numbers
separated by commas: r.r,g.g,b.b.
Also, the ---mmmaaappp flag lets you specify an entire colormap to be used. The
mapfile is just a _p_p_m file; it can be any shape, all that matters is the
colors in it and their order. In this case, black gets mapped into the
first color in the map file, and white gets mapped to the last.
SSSEEEEEE AAALLLSSSOOO
rgb3toppm(1), ppmtopgm(1), ppmtorgb3(1), ppm(5), pgm(5)
AAAUUUTTTHHHOOORRR
Copyright (C) 1991 by Jef Poskanzer.
11 January 1991 1