Yes, I went through other questions related to this, but I found them not very useful. They helped, but I'm still a little confused. So what I need to do:
We have a 132x65 screen. I have 132x65.bmp. I want to go through .bmp and split it into small 1x8 columns to get the binary of this 32 bit column. Then do it 132 times, and do it 9 times. Everything that is not white should be considered a little. Example:
If there is any color in the upper left pixel of the image that is not white, but 7 pixels below white, then this will be the first element of the array, hexadecimal of this number, so the array will look like this :: array [] = {0x01}, and then it will continue to populate these 132 columns and then repeat this for 9 “sections” of rows. And the result of the file will be ONLY this array in a separate file.
I understand the header format for this, I read the wiki article on .bmp file formats, my main problem is that I really don’t know how to interact with .bmp when I really want it to go inside and interact with every pixel from Images. I really don't need all of this, but maybe just an example of capturing each pixel from .bmp and outputting the color of the pixel to a file or something like that. My C ++ is a bit rusty (doing java and javscript lately).
LiverpoolFTW
source share