Possible Duplicate:
Writing BMP image in pure c/c++ without other libraries
C++: Convert text file of integers into a bitmap image file in BMP format
http://www.fastgraph.com/help/bmp_header_format.html
But how to write these into the file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look at this link:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd183374(v=vs.85).aspx
You can use any other file implementation instead of std::ofstream.