home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_docs.lzh / NETPBM / DOCS / ppmshift.1 < prev    next >
Text File  |  1996-11-18  |  2KB  |  46 lines

  1. .TH ppmshift 1 "16 November 1993"
  2. .IX ppmshift
  3. .SH NAME
  4. ppmshift - shift lines of a portable pixmap left or right by a random amount
  5. .SH SYNOPSIS
  6. ppmshift 
  7. .I shift
  8. .RI [ ppmfile ]
  9. .SH DESCRIPTION
  10. Reads a portable pixmap as input. Shifts every row of image data to the
  11. left or right by a certain amount. The 'shift' parameter determines by how 
  12. many pixels a row is to be shifted at most.
  13. .PP
  14. Another one of those effects I intended to use for MPEG tests.
  15. Unfortunately, this program will not help me here - it creates too random
  16. patterns to be used for animations. Still, it might give interesting
  17. results on still images.
  18. .SH EXAMPLE
  19. Check this out: Save your favourite model's picture from something like
  20. alt.binaries.pictures.supermodels (ok, or from any other picture source),
  21. convert it to ppm, and process it e.g. like this, assuming the picture is 
  22. 800x600 pixels:
  23. .EX
  24.   # take the upper half, and leave it like it is
  25.   pnmcut 0 0 800 300 cs.ppm >upper.ppm
  26.  
  27.   # take the lower half, flip it upside down, dim it and distort it a little
  28.   pnmcut 0 300 800 300 cs.ppm | pnmflip -tb | ppmdim 0.7 | 
  29.      ppmshift 10 >lower.ppm
  30.  
  31.   # and concatenate the two pieces
  32.   pnmcat -tb upper.ppm lower.ppm >newpic.ppm
  33. .EE
  34. The resulting picture looks like the image being reflected on a water 
  35. surface with slight ripples.
  36. .SH SEE ALSO
  37. ppm(5), pnmcut(1), pnmflip(1), ppmdim(1), pnmcat(1)
  38. .SH AUTHOR
  39. Copyright (C) 1993 by Frank Neumann
  40. .\" Permission to use, copy, modify, and distribute this software and its
  41. .\" documentation for any purpose and without fee is hereby granted, provided
  42. .\" that the above copyright notice appear in all copies and that both that
  43. .\" copyright notice and this permission notice appear in supporting
  44. .\" documentation.  This software is provided "as is" without express or
  45. .\" implied warranty.
  46.