I have been going through this site and there are clearly several ways in which this can be done, I am looking for the simplest in terms of understanding, as I am really new to C++.
I am using Windows XP, Visual C++ 6.0, and am dealing with 24-bit uncompressed bitmaps.
I wish to be able to create an application (be it command based or window gui based), that can load a bitmap file, and be able to retrieve the RGB values from each pixel. I hope to look for errors in the bitmap, at first starting to look for large areas of green and black. To do this I will need to be able to create an algorithm to loop and search through each pixel. I will also need to be able to note the location of the pixel, as I will need to compare its value with those of the pixels around it.
From what I understand, the structure of a 24-bit bitmap uses 1 byte for each value, thus 3 bytes to store the RGB. How would one get these values in number form to say be checked if it is inbetween say 230-255?
If this question is not entirely worded well, I apologise, I am new to this forum and C++.
Any help or reading material links appreciated, and there is a large urgency as I need this information ASAP, although I dont have the points to offer...
Thanks in advance,