I'm using Visual Studio 2010, C++.
What I'm trying to do is retrieve pixel data (RGB colour specifically) from a loaded image and then use that in various checks. Currently, I want to loop through all the data and be able to detect when a pixel is a certain colour (specific R, G and B values).
I should note that I'm using DevIL, and I'd prefer to keep using DevIL (I've seen a bunch of suggestions to do with other tools that help with image processing).
Right now, as I understand it, the DevIL function ilgetData() retrieves a pointer that has all the RGB values of all the pixels in a single dimensional array of bytes. I don't know how to store the data gotten using this function and then to use it in a for loop.
Example code is much appreciated.