home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / PBMPLUS.ZIP / PGMTOPPM.MAN < prev    next >
Text File  |  1991-08-11  |  2KB  |  67 lines

  1.  
  2.  
  3. pgmtoppm(1)                Unix Programmer's Manual                pgmtoppm(1)
  4.  
  5.  
  6. NNNAAAMMMEEE
  7.      pgmtoppm - colorize a portable graymap into a portable pixmap
  8.  
  9. SSSYYYNNNOOOPPPSSSIIISSS
  10.      pppgggmmmtttoooppppppmmm _c_o_l_o_r_s_p_e_c [_p_g_m_f_i_l_e]
  11.      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]
  12.      pppgggmmmtttoooppppppmmm ---mmmaaappp _m_a_p_f_i_l_e [_p_g_m_f_i_l_e]
  13.  
  14. DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
  15.      Reads a portable graymap as input.  Colorizes it by multiplying  the  the
  16.      gray  values by specified color or colors, and produces a portable pixmap
  17.      as output.
  18.  
  19.      If only one color is specified, black in the pgm  file  stays  black  and
  20.      white in the pgm file turns into the specified color in the ppm file.  If
  21.      two colors (separated by a dash) are specified, then black gets mapped to
  22.      the first color and white gets mapped to the second.
  23.  
  24.      The colors can be specified in three ways.  One, as a name, assuming that
  25.      a  pointer  to an X11-style color names file was compiled in.  Two, as an
  26.      X11-style   hexidecimal   number:   #rgb,   #rrggbb,    #rrrgggbbb,    or
  27.      #rrrrggggbbbb.   Three,  as  a  triplet of decimal floating point numbers
  28.      separated by commas: r.r,g.g,b.b.
  29.  
  30.      Also, the ---mmmaaappp flag lets you specify an entire colormap to be used.   The
  31.      mapfile  is just a _p_p_m file; it can be any shape, all that matters is the
  32.      colors in it and their order.  In this case, black gets mapped  into  the
  33.      first color in the map file, and white gets mapped to the last.
  34.  
  35. SSSEEEEEE AAALLLSSSOOO
  36.      rgb3toppm(1), ppmtopgm(1), ppmtorgb3(1), ppm(5), pgm(5)
  37.  
  38. AAAUUUTTTHHHOOORRR
  39.      Copyright (C) 1991 by Jef Poskanzer.
  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.                                11 January 1991                               1
  65.  
  66.  
  67.