I'm trying to get the pixel information from an image and have got to the point where I have my void* data object which is a pointer to the image data.
What exactly is this object? I've tried iterating over it hoping that it's an array of pixel info but it doesn't seem to work.
I want to get the rgb values for each pixel.