I'm trying to load a bmp file and use it as a height map, but I'm having a little trouble. I've read a few tutorials on this in various places, but I can't seem to get it.

I really would like to know what functions are best to read the bitmap data as int values, as they will be used in height mapping. I've seen fread() and the BiniaryReader class (though I have no idea where it's located) used. So if someone could give me a little insight or point me to a nice tutorial that would be awesome.

Thanks,
David