| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN"> |
| 2 |
<html><head><title>Winicontopam User Manual</title></head> |
| 3 |
<body> |
| 4 |
<h1>winicontopam</h1> |
| 5 |
Updated: 29 August 2020 |
| 6 |
<br> |
| 7 |
<a href="#index">Table Of Contents</a> |
| 8 |
|
| 9 |
<h2>NAME</h2> |
| 10 |
|
| 11 |
winicontopam - convert a Microsoft Windows icon file into a Netpbm PAM file |
| 12 |
|
| 13 |
|
| 14 |
<h2 id="synopsis">SYNOPSIS</h2> |
| 15 |
|
| 16 |
<b>winicontopam</b> |
| 17 |
[<b>-image=</b><i>index</i> | <b>-allimages</b>] |
| 18 |
[<b>-andmasks</b>] |
| 19 |
[<b>-verbose</b>] |
| 20 |
[<i>icon_file</i>] |
| 21 |
|
| 22 |
<p>All options can be abbreviated to their shortest unique prefix. |
| 23 |
You may use two hyphens instead of one to designate an option. You |
| 24 |
may use either white space or equals signs between an option name and |
| 25 |
its value. |
| 26 |
|
| 27 |
<h2 id="description">DESCRIPTION</h2> |
| 28 |
|
| 29 |
<p>This program is part of <a href="index.html">Netpbm</a>. |
| 30 |
|
| 31 |
<p><b>winicontopam</b> reads a Microsoft Windows icon file and converts it to |
| 32 |
one or more RGB_ALPHA Netpbm PAM images. |
| 33 |
|
| 34 |
<p>There are two kinds of transparency information a a Windows icon can have: |
| 35 |
and mask and graded transparency map. The and mask is older and indicates for |
| 36 |
each pixel whether it is fully opaque or fully transparent. The graded |
| 37 |
transparency map can indicate translucent values too. The graded transparency |
| 38 |
map is present in an icon that uses PNG encoding or uses BMP encoding with 32 |
| 39 |
bits per pixel. |
| 40 |
|
| 41 |
<p>The transparency plane in the PAM output of <b>winicontopam</b> comes from |
| 42 |
the graded transparency map if it exists and the and mask otherwise. |
| 43 |
|
| 44 |
<p>An icon may actually have both forms of transparency information. See |
| 45 |
<b>-andmasks</b>. |
| 46 |
|
| 47 |
<p>The output goes to Standard Output. |
| 48 |
|
| 49 |
<p>The output is a multi-image PAM file. If you want a separate file for |
| 50 |
each image, use <a href="pamsplit.html"><b>pamsplit</b></a>. |
| 51 |
|
| 52 |
|
| 53 |
<h2 id="options">OPTIONS</h2> |
| 54 |
|
| 55 |
<p>In addition to the options common to all programs based on libnetpbm |
| 56 |
(most notably <b>-quiet</b>, see <a href="index.html#commonoptions"> |
| 57 |
Common Options</a>), <b>winicontopam</b> recognizes the following |
| 58 |
command line options: |
| 59 |
|
| 60 |
<dl compact> |
| 61 |
|
| 62 |
<dt><b>-allimages</b> |
| 63 |
|
| 64 |
<dd>Convert all images in the input. |
| 65 |
|
| 66 |
<p>You may not specify this together with <b>-image</b>. |
| 67 |
|
| 68 |
<p>By default, <b>winicontopam</b> converts only the one "best |
| 69 |
quality" image (largest, then most bits per pixel). |
| 70 |
|
| 71 |
<dt><b>-image=</b><i>index</i> |
| 72 |
|
| 73 |
<dd>Convert image number <i>index</i> (starting with zero). |
| 74 |
|
| 75 |
<p>You may not specify this together with <b>-allimages</b>. |
| 76 |
|
| 77 |
<p>By default, <b>winicontopam</b> converts the "best quality" |
| 78 |
image (largest, then most bits per pixel). |
| 79 |
|
| 80 |
<dt><b>-andmasks</b> |
| 81 |
|
| 82 |
<dd>If the image to be extracted contains both graded transparency data and an |
| 83 |
AND mask, produce five-channel Netpbm PAM images with the AND mask as the |
| 84 |
fifth plane. An image that formally has graded transparency data, but it |
| 85 |
indicates nothing but opaque pixels is considered not to have graded |
| 86 |
transparency data, so <b>-andmasks</b> would have no effect on it. |
| 87 |
|
| 88 |
<dt><b>-verbose</b> |
| 89 |
|
| 90 |
<dd>Print more messages |
| 91 |
|
| 92 |
</dl> |
| 93 |
|
| 94 |
|
| 95 |
<h2 id="seealso">SEE ALSO</h2> |
| 96 |
|
| 97 |
<ul> |
| 98 |
<li><a href="pamtowinicon.html"><b>pamtowinicon</b></a> |
| 99 |
<li><a href="winicontoppm.html"><b>winicontoppm</b></a> |
| 100 |
<li><a href="pamsplit.html"><b>pamsplit</b></a> |
| 101 |
<li><a href="pam.html"><b>pam</b></a> |
| 102 |
<li><a href="winicon.html"><b>winicon</b></a> |
| 103 |
</ul> |
| 104 |
|
| 105 |
<p>For information on the PNG format, |
| 106 |
see <a href="http://schaik.com/png">http://schaik.com/png</a>. |
| 107 |
|
| 108 |
|
| 109 |
<h2 id="history">HISTORY</h2> |
| 110 |
|
| 111 |
<p><b>winicontopam</b> was new in Netpbm 10.63 (June 2013). It obsoleted |
| 112 |
<b>winicontoppm</b> by providing more function and conforming better to Netpbm |
| 113 |
conventions. |
| 114 |
|
| 115 |
|
| 116 |
<h2 id="author">AUTHOR</h2> |
| 117 |
|
| 118 |
<p>Copyright (C) 2013 by Ludolf Holzheid. |
| 119 |
|
| 120 |
<p>Translated to Netpbm coding style by Bryan Henderson. |
| 121 |
|
| 122 |
<hr> |
| 123 |
<h2 id="index">Table Of Contents</h2> |
| 124 |
<ul> |
| 125 |
<li><a href="#synopsis">SYNOPSIS</a> |
| 126 |
<li><a href="#description">DESCRIPTION</a> |
| 127 |
<li><a href="#options">OPTIONS</a> |
| 128 |
<li><a href="#seealso">SEE ALSO</a> |
| 129 |
<li><a href="#history">HISTORY</a> |
| 130 |
<li><a href="#author">AUTHOR</a> |
| 131 |
</ul> |
| 132 |
</body> |
| 133 |
</html> |