I understand how to load a bitmap file from disk and load
it into an HBITMAP. I can even paint it on the screen.

My question is: How do I access the individual pixel
values within the bitmap? For instance, if I want to do
contrast adjustment. Using dc.GetPixel/SetPixel is way to
slow.

Also, the files are all 8-bpp grayscales. How can I load
the palette into an HPALETTE or similar?

Thanks,
Dave