ICO (icon image file format)

ICO (icon image file format)

Infobox file format
name = ICO
extension = .ico
mime = image/vnd.microsoft.icon
type code =
uniform type = com.microsoft.ico
owner = Microsoft
genre = icon graphics file format
containerfor =
containedby =
extendedfrom =
extendedto =
Infobox file format
name = CUR
extension = .cur
mime =
owner = Microsoft
genre = cursor graphics file format
containerfor =
containedby =
extendedfrom =
extendedto =
The ICO file format is an image file format used for icons in Microsoft Windows. The CUR file format for cursors is almost identical, as the only differences are the identification byte and a specification of a hotspot in the header.

ICO files contain one or more small images at multiple sizes and colour depths.

The official IANA registered MIME type for ico files is image/vnd.microsoft.icon. Before this was registered, image/x-icon was the accepted option that complied with the rules of using "x-" for unregistered tokens. However, many others are seen, including image/ico, image/icon, text/ico, and application/ico. Many web servers do not come configured with a MIME type setting for .ico files, and may send their default MIME type, which might be text/html or text/plain.

Icon sizes, colour depths, and transparency data

Originally 32×32 pixels square and using 16 colors, more recent versions of Microsoft Windows support icons at multiple sizes and color depths. Prior to Windows XP, icon images could be any size from 1×1 pixel up to 255×255 pixels (including non-square sizes), and 4-, 8-, 16-, or 24-bit colour depth. However, only 16×16 and 32×32 images at 4- and 8-bit color depths were shown in the graphical shell, so other icon formats were uncommon. Icon image data was always made up of two bitmaps: the AND bitmap and the XOR bitmap. The AND bitmap is 1 bit per pixel and is applied first to decide which areas of the image are affected by the background. The XOR bitmap is then applied using XOR. This allows for transparent areas in the image but also allows for inverting the background and other tricks.

Windows XP adds support for 32-bit colour depth icon images, with transparency taken from the alpha channel of the image, allowing semitransparent areas like shadows and antialiased edges. As the AND bitmap is no longer used, these icon images contain only XOR bitmap data. Windows XP also adds the ability to display icons at up to 96×96 pixel resolution in the graphical shell; however, Microsoft only recommended icon sizes up to 48×48 pixels, so larger icon sizes are uncommon.

Windows Vista adds support for 256×256 pixel icon images, and supports (but does not require) the compressed PNG format for that size. The PNG format encodes the image transparency data directly; it contains neither the XOR nor the AND bitmap data of the other icon image formats. It is recommended that all 256×256 icons should be stored in the ICO file in PNG format to reduce the overall size of the file. The Windows Vista graphical shell supports "zooming" the display in and out; as a result, more icon formats (including the larger, 256×256 format) are recommended.

Recommended icon sizes for Windows Vista compatibility

The full set of standard icon sizes which should be provided for full Windows Vista compatibility:

# 256×256, 32-bit color, PNG compressed
# 256×256, 8-bit color, PNG compressed
# 256×256, 4-bit color, PNG compressed
# 48×48, 32-bit color, uncompressed
# 48×48, 8-bit color, uncompressed
# 48×48, 4-bit color, uncompressed
# 32×32, 32-bit color, uncompressed
# 32×32, 8-bit color, uncompressed
# 32×32, 4-bit color, uncompressed
# 16×16, 32-bit color, uncompressed
# 16×16, 8-bit color, uncompressed
# 16×16, 4-bit color, uncompressed

Icon library

An icon library is a way to package Windows icons. It is typically a New Executable binary having .ICL extension with icon resources being the packaged icons.

File structure

Please note that all values are represented in little-endian (Intel standard) format

ee also

* Windows bitmap, a very similar file format
** (Note that many of the external links in that article are relevant to ICO files as well).
* Apple Icon Image, the icon format used in Mac OS X.
* Favicon, an icon format used for websites
* Icon editor

External links

* [http://www.iana.org/assignments/media-types/image/vnd.microsoft.icon IANA registration information for image/vnd.microsoft.icon]
* [http://msdn2.microsoft.com/en-us/library/ms997538.aspx Explanation of the ICO implementation from Microsoft] (Out of date. Does not include Vista additions.)
* [http://msdn2.microsoft.com/en-us/library/ms997636.aspx Microsoft's Guide for creating icons]
* [http://www.xvsxp.com/interface/icons.php Compare with Mac OS X Icons]
* [http://www.codeproject.com/cs/library/IconLib.asp A code library used to manipulate icons.] Also includes a detailed technical explanation of the icon format, including the Windows Vista additions.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Magick Image File Format — This page is about the MIFF file format. For the film festivals, see Melbourne International Film Festival or Milano International Film Festival Not to be confused with ImageMagick The Magick Image File Format, abbreviated MIFF, is an image… …   Wikipedia

  • ICO (file format) — ICO Filename extension .ico Internet media type image/vnd.microsoft.icon Uniform Type Identifier com.microsoft.ico Developed by Microsoft Type of format …   Wikipedia

  • Apple Icon Image — Infobox file format name = Apple Icon Image icon = extension = .icns mime = type code = icns uniform type = com.apple.icns owner = Apple Inc. genre = icon file format container for = contained by = extended from = extended to = The Apple Icon… …   Wikipedia

  • ANI (file format) — Infobox file format name = ANI extension = .ani mime = owner = Microsoft genre = cursor graphics file format containerfor = containedby = extendedfrom = extendedto = The ANI file format is a graphics file format used for animated cursors on the… …   Wikipedia

  • ICO — is a PlayStation 2 action adventure gameICO or Ico may also refer to: * ICO (icon image file format), a file format used for icon images in Microsoft Windows * ICO Satellite Management, formerly ICO Global Communications * Illinois College of… …   Wikipedia

  • BMP file format — Windows Bitmap Filename extension .bmp or .dib Internet media type image/x ms bmp (unofficial) or image/x bmp (unofficial) Type code BMP BMPf BMPp Uniform Type Identifier com.microsoft.bmp …   Wikipedia

  • Comparison of graphics file formats — This is a comparison of image file formats. General Ownership of the format and related information. Format Full name Owner Based Format File extension MIME type Application Patented Abc Advanced Bitonal Compression LEAD Technologies .abc …   Wikipedia

  • Portable Document Format — PDF redirects here. For other uses, see PDF (disambiguation). Portable Document Format Adobe Reader icon Filename extension .pdf Internet media type application/pdf application/x pdf application/x bzpdf application/x gzpdf …   Wikipedia

  • Comparison of image viewers — This article presents a comparison of image viewers and image organizers which can be used for image viewing. Contents 1 General information 2 Supported file formats 3 Supported desktop environments …   Wikipedia

  • Computer icon — For a list of icons for use on Wikipedia, see Wikipedia:Icons. A computer icon is a pictogram displayed on a computer screen and used to navigate a computer system or mobile device. The icon itself is a small picture or symbol serving as a quick …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”