Do you know Numpy?
An images can be represented as an array of values.
I actually don´t understand why you are building a bmp with strings / bytes / bytestrings or what so ever.
There are lots of tutorials around this matter http://scipy-lectures.org/advanced/image_processing/
An images can be represented as an array of values.
I actually don´t understand why you are building a bmp with strings / bytes / bytestrings or what so ever.
There are lots of tutorials around this matter http://scipy-lectures.org/advanced/image_processing/