getpixel alternative?

Started by
1 comment, last by pauljan 18 years, 9 months ago
via a dibsection, how do I load a bitmap in, copy it to a dib section, then read the buffer in a similar way to doing the getpixel method?
I'll give you a beating like Rodney King who deserved it!=====================================Any and all ideas, theories, and text c2004,c2009 BrainDead Software. All Rights Reserved.
Advertisement
I've loaded the bitmap.
I've created a dib section.
I've bitblt'd the bitmap to the dib section.

I try to read the pointer from the createdibsection function call, eg:

invoke CreateDIBSection, bDc, edx, DIB_RGB_COLORS, addr pBb, 0, 0

Same API as used in VB as in C/C++, nothing new here. When I go to read from
pBb, it gives me an error. Maybe because I don't have memory allocated to it.

How do I read the values from the bitmap I copied into the dibsection? I could use GetPixel but I understand that is slow.
I'll give you a beating like Rodney King who deserved it!=====================================Any and all ideas, theories, and text c2004,c2009 BrainDead Software. All Rights Reserved.
Not exactly what you are asking for (it is too hot to actually look something up right now, sorry), but I usually use GetDIBits for these things.

This topic is closed to new replies.

Advertisement