Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Importing & Exporting >
Mathematica Import/Export Format

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["file.ico"] imports an ICO file, returning all icons stored in the file as a list of Image objects.
  • Import["file.ico", elem] imports the specified element from an ICO file.
  • Import["file.ico", {elem, suba, subb, ...}] imports a subelement.
  • Import["file.ico", {{elem1, elem2, ...}}] imports multiple elements.
  • The import format can be specified with Import["file", "ICO"] or Import["file", {"ICO", elem, ...}].
  • 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 "ImageList" 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]=
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team