Penguin
Blame: pnmrotate(1)
EditPageHistoryDiffInfoLikePages
Annotated edit history of pnmrotate(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 pnmrotate
2 !!!pnmrotate
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 REFERENCES
7 SEE ALSO
8 AUTHOR
9 ----
10 !!NAME
11
12
13 pnmrotate - rotate a portable anymap by some angle
14 !!SYNOPSIS
15
16
17 __pnmrotate__ [[__-noantialias__] ''angle''
18 [[''pnmfile'']
19 !!DESCRIPTION
20
21
22 Reads a portable anymap as input. Rotates it by the
23 specified angle and produces a portable anymap as output. If
24 the input file is in color, the output will be too,
25 otherwise it will be grayscale. The angle is in degrees
26 (floating point), measured counter-clockwise. It can be
27 negative, but it should be between -90 and 90. Also, for
28 rotations greater than 45 degrees you may get better results
29 if you first use ''pnmflip'' to do a 90 degree rotation
30 and then ''pnmrotate'' less than 45 degrees back the
31 other direction
32
33
34 The rotation algorithm is Alan Paeth's three-shear method.
35 Each shear is implemented by looping over the source pixels
36 and distributing fractions to each of the destination
37 pixels. This has an
38 -noantialias__ flag. This does
39 the shearing by moving pixels without changing their values.
40 If you want anti-aliasing and don't care about the precise
41 colors, but still need a limited *number* of colors, you can
42 run the result through ''ppmquant''.
43
44
45 All flags can be abbreviated to their shortest unique
46 prefix.
47 !!REFERENCES
48
49
50 !!SEE ALSO
51
52
53 pnmshear(1), pnmflip(1), pnm(5), ppmquant(1)
54 !!AUTHOR
55
56
57 Copyright (C) 1989, 1991 by Jef Poskanzer.
58 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.