In my algorithm, I need to create an information output. I need to write a boolean matrix into a bmp file.
It must be a monocromic image, where pixels are white if the matrix on such element is true.
Main problem is the bmp header and how to write this.
In my algorithm, I need to create an information output. I need to write
Share
Without the use of any other library you can look at the BMP file format. I’ve implemented it in the past and it can be done without too much work.
… see the file format for more details