Skip to content

Experiment with Windows .ico formatted files. Extracting bitmap (XOR mask) and AND mask.

Notifications You must be signed in to change notification settings

awisse/ico-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimentation with Windows .ico files

I noticed that LibreSprite and Aseprite only read .ico files correctly if the image is in 24-bit color depth. 2-, 4-, 8- and 32-bit color depths are not handled. In order to better understand this file format, I looked up some documentation on Wikipedia ICO (file format) and BMP, as well as Microsoft Learn: Icons, BITMAPINFOHEADER and The evolution of the ICO file format.

Libresprite also doesn't import bitmaps (.bmp) with 2-bit and 4-bit palettes correctly.

I wrote this code as an exercice to understand the position of the metadata and imagedata of these formats.

Looking into working on LibreSprite one day to better import these formats.

About

Experiment with Windows .ico formatted files. Extracting bitmap (XOR mask) and AND mask.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published