Hi everyone.

I need to get long pixel values out of a bitmap. I need to do this
for many, many pixels at once so GetPixel API is not feasible. I
found some GetDIBits and CreateDIBSection samples that seem
to do what I want, but they automatically retrieve the pixel
values into R, G, and B Byte values. I have tried to manipulate
the samples to get the long values, but to no avail. Can some
kind soul please post some sample code that gets long values
from a DIB?

Otherwise, does someone know how to get a long value
from RGB values?

Thanks, if you can help.