I am working with a framegrabber and need to get the images from computer memory and save them on an image file. after trying for couple of days I end up with the following 2 fu
From the documentation for CreateCompatibleDC:
When the memory DC is created, its display surface is exactly one monochrome pixel wide and one monochrome pixel high. Before an application can use a memory DC for drawing operations, it must select a bitmap of the correct width and height into the DC.
Since you're using CreateDIBSection
with that DC, the resulting DIB section will be 1-bit monochrome as well.