summary refs log tree commit diff
path: root/winicontopam.html
blob: 3baa4d33a1cca6009457a6b47fc20b72a98bb831 (plain) (blame)
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
129
130
131
132
133
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
<html><head><title>Winicontopam User Manual</title></head>
<body>
<h1>winicontopam</h1>
Updated: 29 August 2020
<br>
<a href="#index">Table Of Contents</a>

<h2>NAME</h2>

winicontopam - convert a Microsoft Windows icon file into a Netpbm PAM file


<h2 id="synopsis">SYNOPSIS</h2>

<b>winicontopam</b>
[<b>-image=</b><i>index</i> | <b>-allimages</b>]
[<b>-andmasks</b>]
[<b>-verbose</b>]
[<i>icon_file</i>]

<p>All options can be abbreviated to their shortest unique prefix.
You may use two hyphens instead of one to designate an option.  You
may use either white space or equals signs between an option name and
its value.

<h2 id="description">DESCRIPTION</h2>

<p>This program is part of <a href="index.html">Netpbm</a>.

<p><b>winicontopam</b> reads a Microsoft Windows icon file and converts it to
one or more RGB_ALPHA Netpbm PAM images.

<p>There are two kinds of transparency information a a Windows icon can have:
and mask and graded transparency map.  The and mask is older and indicates for
each pixel whether it is fully opaque or fully transparent.  The graded
transparency map can indicate translucent values too.  The graded transparency
map is present in an icon that uses PNG encoding or uses BMP encoding with 32
bits per pixel.

<p>The transparency plane in the PAM output of <b>winicontopam</b> comes from
  the graded transparency map if it exists and the and mask otherwise.

<p>An icon may actually have both forms of transparency information.  See
<b>-andmasks</b>.

<p>The output goes to Standard Output.

<p>The output is a multi-image PAM file.  If you want a separate file for
each image, use <a href="pamsplit.html"><b>pamsplit</b></a>.


<h2 id="options">OPTIONS</h2>

<p>In addition to the options common to all programs based on libnetpbm
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
Common Options</a>), <b>winicontopam</b> recognizes the following
command line options:

<dl compact>

<dt><b>-allimages</b>

<dd>Convert all images in the input.

<p>You may not specify this together with <b>-image</b>.

<p>By default, <b>winicontopam</b> converts only the one "best
quality" image (largest, then most bits per pixel).

<dt><b>-image=</b><i>index</i>

<dd>Convert image number <i>index</i> (starting with zero).

<p>You may not specify this together with <b>-allimages</b>.

<p>By default, <b>winicontopam</b> converts the "best quality"
image (largest, then most bits per pixel).

<dt><b>-andmasks</b>

<dd>If the image to be extracted contains both graded transparency data and an
AND mask, produce five-channel Netpbm PAM images with the AND mask as the
fifth plane.  An image that formally has graded transparency data, but it
indicates nothing but opaque pixels is considered not to have graded
transparency data, so <b>-andmasks</b> would have no effect on it.

<dt><b>-verbose</b>

<dd>Print more messages

</dl>


<h2 id="seealso">SEE ALSO</h2>

<ul>
<li><a href="pamtowinicon.html"><b>pamtowinicon</b></a>
<li><a href="winicontoppm.html"><b>winicontoppm</b></a>
<li><a href="pamsplit.html"><b>pamsplit</b></a>
<li><a href="pam.html"><b>pam</b></a> 
<li><a href="winicon.html"><b>winicon</b></a>
</ul>

<p>For information on the PNG format,
see <a href="http://schaik.com/png">http://schaik.com/png</a>.


<h2 id="history">HISTORY</h2>

<p><b>winicontopam</b> was new in Netpbm 10.63 (June 2013).  It obsoleted
<b>winicontoppm</b> by providing more function and conforming better to Netpbm
conventions.


<h2 id="author">AUTHOR</h2>

<p>Copyright (C) 2013 by Ludolf Holzheid.

<p>Translated to Netpbm coding style by Bryan Henderson.

<hr>
<h2 id="index">Table Of Contents</h2>
<ul>
<li><a href="#synopsis">SYNOPSIS</a>
<li><a href="#description">DESCRIPTION</a>
<li><a href="#options">OPTIONS</a>
<li><a href="#seealso">SEE ALSO</a>
<li><a href="#history">HISTORY</a>
<li><a href="#author">AUTHOR</a>
</ul>
</body>
</html>