Hi everybody ! Can you help me on finding the equivalant of these functions in MFC? Many thanks in advance. bi.bmiHeader.biSize = sizeof(bi.bmiHeader); bi.bmiHeader.biWidth = dstX; bi.bmiHeader.biHeight = dstY; bi.bmiHeader.biPlanes = 1; bi.bmiHeader.biBitCount = 32; bi.bmiHeader.biCompression = BI_RGB; bi.bmiHeader.biSizeImage = dstX * 4 * dstY; bi.bmiHeader.biClrUsed = 0; bi.bmiHeader.biClrImportant = 0; **SetDIBits(hdcDst, hBmpDst, 0, dstY, dst, &bi, DIB_RGB_COLORS);**
bi.bmiHeader.biSize = sizeof(bi.bmiHeader); bi.bmiHeader.biWidth = nx; bi.bmiHeader.biHeight = - ny; bi.bmiHeader.biPlanes = 1; bi.bmiHeader.biBitCount = 32; bi.bmiHeader.biCompression = BI_RGB; bi.bmiHeader.biSizeImage = nx * 4 * ny; bi.bmiHeader.biClrUsed = 0; bi.bmiHeader.biClrImportant = 0; buf = (pBGR) malloc(nx * 4 * ny); **bRes = GetDIBits(cdcSrc, cBmpSrc, 0, ny, buf, &bi, DIB_RGB_COLORS);**
Y
yasde
@yasde
Posts
-
SetDIBits and GetDIBits in MFC?