1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD><TITLE>Ppmtowinicon User Manual</TITLE></HEAD>
<BODY>
<H1>ppmtowinicon</H1>
Updated: 01 May 2004
<BR>
<A HREF="#index">Table Of Contents</A>
<H2>NAME</H2>
ppmtowinicon - convert PPM image into a Windows .ico file
<H2 id="synopsis">SYNOPSIS</H2>
<B>ppmtowinicon</B>
[<b>-andpgms</b>]
[<b>-output=</b><i>output.ico</I>]
[<I>ppmfile</I> [<i>andfile</i>] ...]
<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
<p>This program is essentially obsolete; The newer <b>pamtowinicon</b> is
better.
<p><b>ppmtowinicon</b> reads one or more PPM images as input and
produces a Microsoft Windows .ico file as output.
<P>A Windows icon contains 1 or more images, at different resolutions
and color depths. When Windows wants to display the icon, it searches
through the images to find the one that best matches the number of colors
and resolution of the display.
<P>Microsoft recommends including at least the following formats in each
icon.
<ul>
<li>16 x 16 - 4 bpp
<li>32 x 32 - 4 bpp
<li>48 x 48 - 8 bpp
</ul>
<p>If you don't specify any input files, input is from Standard Input.
<p>Output is to Standard Output unless you specify <b>-output</b>.
<h3 id="transparency">Transparency</h3>
<p>If you specify the <b>-andmask</b> option, you get (partly)
transparent icons. In that case, your arguments are pairs of file
names, with the first file name being that of the image and the second
file name being that of a standard Netpbm PGM transparency mask (see
the <a href="pgm.html">pgm format specification</a>).
<p>In a .ico file, there is no such thing as partial transparency
(translucency). Where the PGM mask says completely opaque, the icon will
be opaque. Everywhere else, the icon will be transparent. Note that
as with any Netpbm program, you can use a PBM image for the transparency
mask and <b>ppmtowinicon</b> will treat it like a PGM.
<P>The and mask is like a transparency mask, except for what it signifies in
the "not opaque" areas. In the usual case, the foreground image is
black in those areas, and in that case the areas are fully transparent
-- the background shows through the icon. But in general, a not
opaque pixel signifies that the background and foreground should be
merged as follows: The intensities of the color components in the
foreground and background are represented as binary numbers, then
corresponding bits of the background and foreground intensities are
exclusive-or'ed together. So there is a sort of reverse video effect.
<p>If you don't want this special effect and instead want
straightforward transparency, use the <b>-truetransparent</b> option.
This causes <b>ppmtowinicon</b> to make the base image black
everywhere your transparency mask says transparent, regardless of what
color your input image is at that location.
<p>If you don't specify <b>-andmask</b>, <b>ppmtowinicon</b> puts
all-opaque and masks into the .ico file.
<H2 id="options">OPTIONS</H2>
<DL COMPACT>
<DT><B>-andpgms</B>
<DD>Include transparency information in the icons.
See the <a href="#transparency">transparency section</a>.
<DT><B>-output=</b><i>output.ico</i>
<DD>Name of output file. By default, <b>ppmtowinicon</b> writes the
icon to Standard Output.
<DT><B>-truetransparent</b>
<dd>Make transparency in the icon normal instead of the special reverse
video effect. See the <a href="#transparency">transparency section</a>.
</DL>
<H2 id="seealso">SEE ALSO</H2>
<B><A HREF="pamtowinicon.html">pamtowinicon</A></B>,
<B><A HREF="winicontoppm.html">winicontoppm</A></B>,
<B><A HREF="ppm.html">ppm</A></B>
<B><A HREF="pgm.html">pgm</A></B>
<H2 id="author">AUTHOR</H2>
Copyright (C) 2000 by Lee Benfield.
<HR>
<H2 id="index">Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<UL>
<LI><A HREF="#transparency">TRANSPARENCY</A>
</UL>
<LI><A HREF="#options">OPTIONS</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>
|