To better understand the Icon File format I've modified Erel's code to read an icon file and store what was read in a TextBox.
I've then copied this to Excel and sorted the data into its corresponding sections, i.e. Entries, InfoHeader, Color etc.
This has helped me to understand how the file is built but I'm struggling to make sense of the XOR-bitmap/AND-Bitmap data.
Does each Byte represent the index of the color in the color table
So a value of 25 would be referring to the 25th color listed in the color table?
I'm presuming that each Byte represents a single pixel and I understand that the pixels are in reverse order which frankly just complicates things even further :sign0148:
Any help would be greatly appreciated!
Thanks,
RandomCoder.
I've then copied this to Excel and sorted the data into its corresponding sections, i.e. Entries, InfoHeader, Color etc.
This has helped me to understand how the file is built but I'm struggling to make sense of the XOR-bitmap/AND-Bitmap data.
Does each Byte represent the index of the color in the color table
So a value of 25 would be referring to the 25th color listed in the color table?
I'm presuming that each Byte represents a single pixel and I understand that the pixels are in reverse order which frankly just complicates things even further :sign0148:
Any help would be greatly appreciated!
Thanks,
RandomCoder.