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.

4 Years
Discussion Span
Last Post by Suzie999

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

Edited by Suzie999

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.