This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ICO (.ico)

Registered MIME type: image/vnd.microsoft.icon
Microsoft Windows icon.
Raster image file format.
Native icon format on Windows.
ICO is an acronym derived from icon.
Binary format.
Can store multiple icons at different color resolutions.
Supports alpha channels.
Similar to CUR format.
  • Import fully supports the ICO format.
  • Import imports an ICO file, returning all icons stored in the file as a list of Image objects.
  • Import imports the specified element from an ICO file.
  • Import imports multiple elements.
  • See the reference pages for full general information on Import.
"Elements" list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties, and settings
  • Data representation elements:
"Data"array of color values for each icon
"GraphicsList"list of graphics objects
"ImageList"all icons, given as a list of Image objects
"GrayLevels"array of normalized gray-level values
"RGBColorArray"array of RGBColor objects for each icon
  • Import by default uses the element for ICO files.
"BitDepth"number of bits used to represent each color channel
"ColorSpace"color encoding used in the file
"ImageSize"raster dimensions
Import an ICO file which contains two bitmaps as a list of images:
Read an ICO file representing an icon at various resolutions:
Import an ICO file which contains two bitmaps as a list of images:
In[1]:=
Click for copyable input
Out[1]=
 
Read an ICO file representing an icon at various resolutions:
In[1]:=
Click for copyable input
Out[1]=