Windows 1.0 Icon

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo |formattype=electronic |subcat=Graphics |extensions={{ext|ico}} }} The Windows 1.x variant of the '''ICO''' format is used in Microsoft Windows versions 1 and 2 t...")
 
m
 
(One intermediate revision by one user not shown)
Line 36: Line 36:
 
|-
 
|-
 
|}
 
|}
Two bitmaps come after the header, each <code>csHeight</code> * <code>csWidthBytes</code> bytes long. The first bitmap is ANDed with the screen pattern; then the second is XORed on top of it.
+
Two bitmaps come after the header, each <code>csHeight</code> * <code>csWidthBytes</code> bytes long. The first bitmap is ANDed with the screen pattern; then the second is [[Exclusive Or|XORed]] on top of it.
  
 
A file in 'device independent' format is stored at double its eventual size (so a 32&times;32 icon would be saved as a 64&times;64 bitmap). A file in 'Both formats' format contains the header and bitmaps for the 'device-independent' version of the bitmap, followed by the header and bitmaps for the 'device-dependent' version.
 
A file in 'device independent' format is stored at double its eventual size (so a 32&times;32 icon would be saved as a 64&times;64 bitmap). A file in 'Both formats' format contains the header and bitmaps for the 'device-independent' version of the bitmap, followed by the header and bitmaps for the 'device-dependent' version.
  
 
== See also ==
 
== See also ==
* [[Windows_1.0_Cursor]]
+
* [[Windows 1.0 Cursor]]
 
* [[ICO]]
 
* [[ICO]]
  

Latest revision as of 22:02, 4 June 2017

File Format
Name Windows 1.0 Icon
Ontology
Extension(s) .ico

The Windows 1.x variant of the ICO format is used in Microsoft Windows versions 1 and 2 to define monochrome icons. It has little in common with the ICO format used by Windows 3 and above.

[edit] Format

Files begin with a little-endian word, which is one of:

Value Meaning
0001 Device-Independent Format
0101 Device-Dependent Format
0201 Both formats

This is followed by a 12-byte header describing the icon bitmap:

Offset Type Meaning
0000 DWORD Not used (corresponds to hot spot X/Y in the Windows_1.0_Cursor format).
0004 WORD Width of bitmap in pixels
0006 WORD Height of bitmap in pixels
0008 WORD Width of bitmap in bytes
000A WORD Not used (corresponds to cursor color in the Windows_1.0_Cursor format).

Two bitmaps come after the header, each csHeight * csWidthBytes bytes long. The first bitmap is ANDed with the screen pattern; then the second is XORed on top of it.

A file in 'device independent' format is stored at double its eventual size (so a 32×32 icon would be saved as a 64×64 bitmap). A file in 'Both formats' format contains the header and bitmaps for the 'device-independent' version of the bitmap, followed by the header and bitmaps for the 'device-dependent' version.

[edit] See also

[edit] Sample files

  • Samples can be found in the Windows 2.x DDK, or generated with the Windows 1.x / 2.x icon editor ICONEDIT.
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox