I got it!
Went back to CreateDIBSection() from my original post, but initialized bmiColors like this:
Thanks for the advice!Code:for (int n=0; n < 256; n++) { m_pBitmapInfo->bmiColors[n].rgbBlue=n; m_pBitmapInfo->bmiColors[n].rgbGreen=n; m_pBitmapInfo->bmiColors[n].rgbRed=n; m_pBitmapInfo->bmiColors[n].rgbReserved=0; }
Mac




Reply With Quote