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.

Sorry, I do apologize, silly math calculations from me :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.