diff options
Diffstat (limited to 'winicon.html')
-rw-r--r-- | winicon.html | 117 |
1 files changed, 58 insertions, 59 deletions
diff --git a/winicon.html b/winicon.html index 71c83b4d..30a5dbcb 100644 --- a/winicon.html +++ b/winicon.html @@ -1,127 +1,126 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> -<HTML><HEAD><TITLE>Windows Icons</TITLE></HEAD> -<BODY> -<H1>Windows Icons</H1> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN"> +<html><head><title>Windows Icons</title></head> +<body> +<h1>Windows Icons</h1> Updated: 12 April 2013 -<BR> -<A HREF="#index">Table of Contents</A> +<br> +<a href="#index">Table Of Contents</a> -<H2 id="name">NAME</H2> +<h2>NAME</h2> Microsoft Windows icon files -<H2 id="description">DESCRIPTION</H2> +<h2 id="description">DESCRIPTION</h2> <p>A Microsoft Windows icon file contains one or more images, at resolutions up to 256 by 256 pixels and various bpp values. The images are encoded either as Portable Network Graphics file (PNG), or in a format similar to Microsoft's BMP format. -<P>If encoded as BMP, the image includes an "AND mask", +<p>If encoded as BMP, the image includes an "AND mask", which contains 1-bit transparency data. It may also contain additional 8-bit transparency data together with the color information. - -<H3 id="colordepth">Color Depth</H3> +<h3 id="colordepth">Color Depth</h3> Except for the 16 bits per pixel images and images with bit fields, which both are rare, the colors in all BMP encoded images are RGB with 8 bits per channel. Images with bpp values lower than 16 use a palette. -<P>I.e. the bpp value gives the number of distinct colors, not the color +<p>I.e. the bpp value gives the number of distinct colors, not the color depth. -<H3 id="masks">XOR Mask and AND Mask</H3> +<h3 id="masks">XOR Mask and AND Mask</h3> <p>BMP encoded images contain two pixel maps: The so-called "XOR mask" stores the color information for each pixel, and the "AND mask" stores the transparency belonging to it. -<P>The names and the function of these maps are most easily +<p>The names and the function of these maps are most easily understood by looking at how a 1-bpp icon image is rendered on a monochrome screen: The pixels on the screen are logically AND-ed with the bits on the AND mask, then the result is logically XOR-ed with the bits on the XOR mask. -<P>The result is that if a bit on the AND mask is reset, the corresponding bit +<p>The result is that if a bit on the AND mask is reset, the corresponding bit on the XOR mask determines the color of the pixel on the screen. If a bit in the AND mask is set and the corresponding bit in the XOR mask is black (reset), the image is transparent. Finally, if the bits are set in both the AND and XOR mask (the pixel on the XOR mask is white), the background of the screen is inverted. -<P>In color environments, a pixel on the XOR mask outside the opaque area of +<p>In color environments, a pixel on the XOR mask outside the opaque area of the image is usually black and sometimes white, but a color other than black and white will hardly give predictable results. -<P>Since Windows XP, there may also be an 8-bit transparency channel in 32-bpp +<p>Since Windows XP, there may also be an 8-bit transparency channel in 32-bpp BMP encoded icon images. The AND mask, however, is still required and used e.g. for generating shadows. -<P>PNG encoded images don't contain AND masks. While rendering a PNG encoded +<p>PNG encoded images don't contain AND masks. While rendering a PNG encoded image, Windows constructs an AND mask on the fly from the transparency channel, if present. -<H3 id="evolution">Evolution of Windows Icons</H3> +<h3 id="evolution">Evolution of Windows Icons</h3> <p>The Windows icon file format has undergone some extensions since it was invented in the mid-eighties for Windows 1: -<UL> -<LI>Windows 1 used monochrome 32x32 icons only. -<LI>Windows 3.0 added color icons with bpp values up to 8. -<LI>Windows 4.0 (a.k.a. Windows95) added option for 32-bpp images and +<ul> +<li>Windows 1 used monochrome 32x32 icons only. +<li>Windows 3.0 added color icons with bpp values up to 8. +<li>Windows 4.0 (a.k.a. Windows95) added option for 32-bpp images and resolutions up to 256 by 256. -<LI>NT 5.1 (a.k.a. Windows XP) added option for the 8-bit +<li>NT 5.1 (a.k.a. Windows XP) added option for the 8-bit transparency channel in the unused bits of 32-bpp images. -<LI>NT 6.0 (a.k.a. Windows Vista) added option for PNG +<li>NT 6.0 (a.k.a. Windows Vista) added option for PNG encoded images -</UL> +</ul> -<H3 id="resolutions">Common Resolutions and BPP Values</H3> +<h3 id="resolutions">Common Resolutions and BPP Values</h3> <p>Typical resolutions and bpp values of the Windows shell icons include: -<TABLE align="center" border=1> +<table border=1 style="text-align:center"> <?makeman l l l. ?> <?makeman _ ?> -<TR><TH>OS</TH><TH>resolutions</TH><TH>bpp values</TH></TR> -<TR><TD>Windows 3</TD><TD>32x32</TD><TD>1, 4<BR></TD></TR> -<TR><TD>Windows 4</TD><TD>16x16, 32x32, 48x48</TD><TD>4, 8</TD></TR> -<TR><TD>NT 5</TD><TD>16x16, 32x32, 48x48</TD><TD>4, 8, 32</TD></TR> -<TR><TD rowspan=3>NT 6</TD><TD>16x16, 32x32, 48x48</TD><TD>4, 8, 32</TD></TR> -<TR><TD>24x24, 96x96</TD><TD>8, 32<BR></TD></TR> -<TR><TD>256x256</TD><TD>32 (PNG encoded)<BR></TD></TR> -</TABLE> - -<P>Within the icon file, the images with low bpp values are usually +<tr><th>OS</th><th>resolutions</th><th>bpp values</th></tr> +<tr><td>Windows 3</td><td>32x32</td><td>1, 4<br></td></tr> +<tr><td>Windows 4</td><td>16x16, 32x32, 48x48</td><td>4, 8</td></tr> +<tr><td>NT 5</td><td>16x16, 32x32, 48x48</td><td>4, 8, 32</td></tr> +<tr><td rowspan=3>NT 6</td><td>16x16, 32x32, 48x48</td><td>4, 8, 32</td></tr> +<tr><td>24x24, 96x96</td><td>8, 32<br></td></tr> +<tr><td>256x256</td><td>32 (PNG encoded)<br></td></tr> +</table> + +<p>Within the icon file, the images with low bpp values are usually stored first. With the same bpp value, the images are sorted by resolution, large images first. -<H3 id="mimetype">MIME Type and File Name Extension</H3> +<h3 id="mimetype">MIME Type and File Name Extension</h3> <p>The MIME type of Windows icon files is registered by IANA as -<B>image/vnd.microsoft.icon</B>, but the unofficial name -<B>image/x-icon</B> is still widely used. - -<P>The file name extension (used by Microsoft operating systems as -file type identifier) is <B>.ico</B>. - -<HR> -<H2 id="index">Table Of Contents</H2> -<UL> -<LI><A HREF="#description">DESCRIPTION</A> -<UL> -<LI><A HREF="#colordepth">Color Depth</A> -<LI><A HREF="#masks">XOR Mask and AND Mask</A> -<LI><A HREF="#evolution">Evolution of Windows Icons</A> -<LI><A HREF="#resolutions">Common Resolutions and BPP Values</A> -<LI><A HREF="#mimetype">MIME Type and File Name Extension</A> -</UL> -</UL> -</BODY> -</HTML> +<b>image/vnd.microsoft.icon</b>, but the unofficial name +<b>image/x-icon</b> is still widely used. + +<p>The file name extension (used by Microsoft operating systems as +file type identifier) is <b>.ico</b>. + +<hr> +<h2 id="index">Table Of Contents</h2> +<ul> +<li><a href="#description">DESCRIPTION</a> + <ul> + <li><a href="#colordepth">Color Depth</a> + <li><a href="#masks">XOR Mask and AND Mask</a> + <li><a href="#evolution">Evolution of Windows Icons</a> + <li><a href="#resolutions">Common Resolutions and BPP Values</a> + <li><a href="#mimetype">MIME Type and File Name Extension</a> + </ul> +</ul> +</body> +</html> |