If you're writing your own (not using a library) method of outputting BMP files, I'd suggest going with TGA instead. They're much simpler to figure out. If you're looking for more file types:...