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

  1.  
  2.  
  3. pnmshear(1)                Unix Programmer's Manual                pnmshear(1)
  4.  
  5.  
  6. NNNAAAMMMEEE
  7.      pnmshear - shear a portable anymap by some angle
  8.  
  9. SSSYYYNNNOOOPPPSSSIIISSS
  10.      pppnnnmmmssshhheeeaaarrr [-nnnoooaaannntttiiiaaallliiiaaasss] _a_n_g_l_e [_p_n_m_f_i_l_e]
  11.  
  12. DDDEEESSSCCCRRRIIIPPPTTTIIIOOONNN
  13.      Reads a portable anymap as input.  Shears 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), and measures this:
  17.          +-------+  +-------+
  18.          |       |  |\       \
  19.          |  OLD  |  | \  NEW  \
  20.          |       |  |an\       \
  21.          +-------+  |gle+-------+
  22.      If the angle is negative, it shears the other way:
  23.          +-------+  |-an+-------+
  24.          |       |  |gl/       /
  25.          |  OLD  |  |e/  NEW  /
  26.          |       |  |/       /
  27.          +-------+  +-------+
  28.      The angle should not get too close to 90 or -90, or the resulting  anymap
  29.      will be unreasonably wide.
  30.  
  31.      The shearing is  implemented  by  looping  over  the  source  pixels  and
  32.      distributing  fractions  to  each of the destination pixels.  This has an
  33.      "anti-aliasing" effect - it avoids jagged edges  and  similar  artifacts.
  34.      However,  it  also  means  that the original colors or gray levels in the
  35.      image are modified.  If you need  to  keep  precisely  the  same  set  of
  36.      colors,  you  can  use  the ---nnnoooaaannntttiiiaaallliiiaaasss flag.  This does the shearing by
  37.      moving pixels without changing their values.  If you  want  anti-aliasing
  38.      and  don't  care  about  the  precise  colors,  but  still need a limited
  39.      *number* of colors, you can run the result through _p_p_m_q_u_a_n_t.
  40.  
  41.      All flags can be abbreviated to their shortest unique prefix.
  42.  
  43. SSSEEEEEE AAALLLSSSOOO
  44.      pnmrotate(1), pnmflip(1), pnm(5), ppmquant(1)
  45.  
  46. AAAUUUTTTHHHOOORRR
  47.      Copyright (C) 1989, 1991 by Jef Poskanzer.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                                12 January 1991                               1
  65.  
  66.  
  67.