Le añades los 54 bytes del header del BMP, lo guardas como BMP y debe ir...
Código [Seleccionar]
http://www.fastgraph.com/help/bmp_header_format.html
http://en.wikipedia.org/wiki/Windows_bitmap