... DibBits(lpbmi), // pointer to 'bits' - the pixels (LPBITMAPINFO)lpbmi, DIB_RGB_COLORS, // DIB palette is (presumably?) RGB entries SRCCOPY); // raster operation (copy) #endif GlobalUnlock(hdib); } } // TWAIN_DrawDibToDC /////////////////////////////////////////////////////////////////////// ...