1
Developer's Corner / Random bmp generator
« on: January 16, 2010, 08:53 PM »
I'm creating a random bmp generator just for the sake of learning in C++. As I've come to understand, bmp files have a header at the top that says that it's a bmp, and how large it is, correct? And now when I want my C++ code to write the header for a 100x100 file to a new file created by C++, and then the following 30,000 characters to be random.
Problems:
1. I can't write null characters to a file?
2. My code for some reason writes the header at the beginning and the end.
Everything else:
I've probably got figured out!
The source can be released for any other beginners, but there's really no point for anybody else.
*Edit* that is, once it is finished, if it is finished.
Problems:
1. I can't write null characters to a file?
2. My code for some reason writes the header at the beginning and the end.
Everything else:
I've probably got figured out!
The source can be released for any other beginners, but there's really no point for anybody else.
*Edit* that is, once it is finished, if it is finished.