version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
ppmcolormask |
|
|
2 |
!!!ppmcolormask |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
SEE ALSO |
|
|
7 |
AUTHOR |
|
|
8 |
---- |
|
|
9 |
!!NAME |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
ppmcolormask - produce mask of areas of a certain color in a PPM file |
|
|
13 |
!!SYNOPSIS |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
__ppmcolormask__ ''color'' |
|
|
17 |
[[''ppmfile''] |
|
|
18 |
!!DESCRIPTION |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
Reads a PPM file as input. Produces a PBM (bitmap) file as |
|
|
22 |
output. The output file is the same dimensions as the input |
|
|
23 |
file and is black in all places where the input file is the |
|
|
24 |
color ''color'', and white everywhere else. |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
The output of __ppmcolormask__ is useful as an alpha mask |
|
|
28 |
input to __pnmcomp__. Note that you can generate such an |
|
|
29 |
alpha mask automatically as you convert to PNG format with |
|
|
30 |
pnmtopng(1). Use its __-transparent__ |
|
|
31 |
option. |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
''ppmfile'' is the input file. If you don't specify |
|
|
35 |
''ppmfile'', the input is from Standard |
|
|
36 |
Input. |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
The output goes to Standard Output. |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
You can specify ''color'' five ways: |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
o |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
An X11-style color name (e.g. __black__). |
|
|
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 |
!!SEE ALSO |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
pgmtoppm(1), pnmcomp(1), pbmmask(1), |
|
|
84 |
__ppm(5)__ |
|
|
85 |
!!AUTHOR |
|
|
86 |
|
|
|
87 |
|
|
|
88 |
Bryan Henderson (bryanh@giraffe-data.com) |
|
|
89 |
---- |