bmplib is a simple library to create and write 24-bit BMP image files. It relies on no other software.