Learning how to render BMP image
BMP IMAGE RENDERING
I am currently learning how to render a bmp image in C!
It is quite interesting to say the least. It's pretty interesting however.
It really gets you into some of the dirty parts of C. Such as knowing how to work with an array, what each thing does, and pretty much understanding each ideal within the array and what it does corresponding to the image rendering.
It's quite interesting, between the info header(which defines the BMP file outline), and the header which holds the image information(such as the image size, the image pixel offset, the image width, height etc).
There is a catch to this however.
The width and height has to correspond to the amount of bytes put into the colors.
There is an example in the code. The images being rendered are quite small because I cannot seem to figure out how to render a image with a width greater than 90.
Tell me what you think of it. And please, let me know if you want to learn how to render a BMP image in C. I will gladly teach you!
Screenshot of a rendered BMP image: