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

  1.  
  2.  
  3. pnmrotate(1)               Unix Programmer's Manual               pnmrotate(1)
  4.  
  5.  
  6. NNNAAAMMMEEE
  7.      pnmrotate - rotate a portable anymap by some angle
  8.  
  9. SSSYYYNNNOOOPPPSSSIIISSS
  10.      pppnnnmmmrrroootttaaattteee [-nnnoooaaannntttiiiaaallliiiaaasss] _a_n_g_l_e [_p_n_m_f_i_l_e]
  11.  
  12. DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
  13.      Reads a portable anymap as input.  Rotates it by the specified angle  and
  14.      produces a portable anymap as output.  If the input file is in color, the
  15.      output will be too, otherwise it will be  grayscale.   The  angle  is  in
  16.      degrees   (floating   point),  measured  counter-clockwise.   It  can  be
  17.      negative, but it should be between  -90  and  90.   Also,  for  rotations
  18.      greater  than  45  degrees  you  may  get better results if you first use
  19.      _p_n_m_f_l_i_p to do a 90 degree  rotation  and  then  _p_n_m_r_o_t_a_t_e  less  than  45
  20.      degrees back the other direction
  21.  
  22.      The rotation algorithm is Alan Paeth's three-shear method.  Each shear is
  23.      implemented  by looping over the source pixels and distributing fractions
  24.      to each of the destination pixels.  This has an "anti-aliasing" effect  -
  25.      it  avoids  jagged  edges  and similar artifacts.  However, it also means
  26.      that the original colors or gray levels in the image  are  modified.   If
  27.      you  need  to  keep  precisely  the  same  set of colors, you can use the
  28.      ---nnnoooaaannntttiiiaaallliiiaaasss flag.  This does  the  shearing  by  moving  pixels  without
  29.      changing  their  values.   If you want anti-aliasing and don't care about
  30.      the precise colors, but still need a limited *number* of colors, you  can
  31.      run the result through _p_p_m_q_u_a_n_t.
  32.  
  33.      All flags can be abbreviated to their shortest unique prefix.
  34.  
  35. RRREEEFFFEEERRREEENNNCCCEEESSS
  36.      "A Fast Algorithm for General Raster Rotation" by  Alan  Paeth,  Graphics
  37.      Interface '86, pp. 77-81.
  38.  
  39. SSSEEEEEE AAALLLSSSOOO
  40.      pnmshear(1), pnmflip(1), pnm(5), ppmquant(1)
  41.  
  42. AAAUUUTTTHHHOOORRR
  43.      Copyright (C) 1989, 1991 by Jef Poskanzer.
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                12 January 1991                               1
  65.  
  66.  
  67.