version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
pnmalias |
|
|
2 |
!!!pnmalias |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
SEE ALSO |
|
|
8 |
AUTHOR |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
pnmalias - antialias a portable anyumap. |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__pnmalias__ [[__-bgcolor__ ''color''] |
|
|
18 |
[[__-fgcolor__ ''color''] [[__-bonly__] |
|
|
19 |
[[__-fonly__] [[__-balias__] [[__-falias__] |
|
|
20 |
[[__-weight__ ''w''] [[''pnmfile''] |
|
|
21 |
!!DESCRIPTION |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
Reads a portable anymap as input, and applies anti-aliasing |
|
|
25 |
to background and foreground pixels. If the input file is a |
|
|
26 |
portable bitmap, the output anti-aliased image is promoted |
|
|
27 |
to a graymap, and a message is printed informing the user of |
|
|
28 |
the change in format. |
|
|
29 |
!!OPTIONS |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
__-bgcolor__ ''colorb,'' __-fgcolor__ |
|
|
33 |
''colorf'' |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
set the background color to ''colorb,'' and the |
|
|
37 |
foreground to color to ''colorf.'' Pixels with these |
|
|
38 |
values will be anti-aliased. by default, the background |
|
|
39 |
color is taken to be black, and foreground color is assumed |
|
|
40 |
to be white. The colors can be specified in five |
|
|
41 |
ways: |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
__o__ |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
A name, assuming that a pointer to an X11-style color names |
|
|
48 |
file was compiled in. |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
__o__ |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
An X11-style hexadecimal specifier: rgb:r/g/b, where r g and |
|
|
55 |
b are each 1- to 4-digit hexadecimal numbers. |
|
|
56 |
|
|
|
57 |
|
|
|
58 |
__o__ |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
An X11-style decimal specifier: rgbi:r/g/b, where r g and b |
|
|
62 |
are floating point numbers between 0 and 1. |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
__o__ |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
For backwards compatibility, an old-X11-style hexadecimal |
|
|
69 |
number: #rgb, #rrggbb, #rrrgggbbb, or |
|
|
70 |
#rrrrggggbbbb. |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
__o__ |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
For backwards compatibility, a triplet of numbers separated |
|
|
77 |
by commas: r,g,b, where r g and b are floating point numbers |
|
|
78 |
between 0 and 1. (This style was added before MIT came up |
|
|
79 |
with the similar rgbi style.) |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
Note that even when dealing with graymaps, background and |
|
|
83 |
foreground colors need to be specified in the fashion |
|
|
84 |
described above. In this case, background and foreground |
|
|
85 |
pixel values are taken to be the value of the red component |
|
|
86 |
for the given color. |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
__-bonly__, __-fonly__ |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
Apply anti-aliasing only to background (__-bonly__), or |
|
|
93 |
foreground (__-fonly__) pixels. |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
__-balias__, __-falias__ |
|
|
97 |
|
|
|
98 |
|
|
|
99 |
Apply anti-aliasing to all pixels surrounding background |
|
|
100 |
(__-balias__), or foreground (__-falias__) pixels. By |
|
|
101 |
default, anti-aliasing takes place only among neighboring |
|
|
102 |
background and foreground pixels. |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
__-weight__ ''w'' |
|
|
106 |
|
|
|
107 |
|
|
|
108 |
Use ''w'' as the central weight for the aliasing filter. |
|
|
109 |
''W'' must be a real number in the range 0 ''w'' |
|
|
110 |
''w'' is, the |
|
|
111 |
'' |
|
|
112 |
!!SEE ALSO |
|
|
113 |
|
|
|
114 |
|
|
|
115 |
pbmtext(1), pnmsmooth(1), pnm(5) |
|
|
116 |
!!AUTHOR |
|
|
117 |
|
|
|
118 |
|
|
|
119 |
Copyright (C) 1992 by Alberto Accomazzi, Smithsonian |
|
|
120 |
Astrophysical Observatory. |
|
|
121 |
---- |