I'm using the function GetBitmapBits.
MSDN says of the function
The GetBitmapBits function copies the bitmap bits of a specified device-dependent bitmap into a buffer.
What it does not say, is how the data is stored, and I need to know this if I'm to analyze each specific color.
Normally when dealing with a regular Bitmap like a screenshot for example, I can analyze by using x,y coordinates of that bitmap. However the buffer which GetBitmapBits writes to is a sequential 1 dimensional array, so is the image in that array stored in pixels from left to right top to bottom, top to bottom left to right, borom to top left to right etc...
I'm needing to compare colors of pixels to a given color.
Appreciate any help.