I now have a file with X, Y, Z and Intensity (0-1) of all the pixels. I want to create a .bmp file (grayscale) with this information in C++. Can anyone tell me how to do it?
b) Use a helper library that does most of the work for you. The downside is that you'll have to learn a different way to do the same thing, if you suddenly decide to use another library.