Thanks for all your help on this guys.
After I posted this question I took a good look at the BMP format and found it had a very easy-to-access header which I was able to use to extract the palette and also the pixel index values.
I`m at work at the moment but, when I go home tonight, I`ll post up my function that loads in a 256 colour index pixmap.
Each red channel of each pixel contains the index value as apposed to the actual colour and a separate array contains the palette.
You can't draw these pixmaps but there handy to use if, for example, you're writing an index paint package.
Thanks again guys!
After I posted this question I took a good look at the BMP format and found it had a very easy-to-access header which I was able to use to extract the palette and also the pixel index values.
I`m at work at the moment but, when I go home tonight, I`ll post up my function that loads in a 256 colour index pixmap.
Each red channel of each pixel contains the index value as apposed to the actual colour and a separate array contains the palette.
You can't draw these pixmaps but there handy to use if, for example, you're writing an index paint package.
Thanks again guys!