I'm have a bitmap that's about 4000x2000. But I want to put it all into a picture
control. I attempted to use stretchBlt() to shrink it. But it did not work. What am
I doing wrong?
Code:HBITMAP originalImage = CreateDIBitmap(m_picture1.GetDC()->m_hDC, m_bmiHeader, CBM_INIT, (unsigned short *)m_OriginalBits, m_bmiInfo, DIB_RGB_COLORS); // I want to use stretchBlt to put the bitmap (OriginalBits) into a smaller m_picture1, // what should I from the target and source hDC? I'm very confused. bool rc = StretchBlt(GetDC()->m_hDC, 0, 0, FRAMEWIDTH, FRAMEHEIGHT, GetDC()->m_hDC, 0, 0, m_bmiHeader->biWidth, m_bmiHeader->biHeight, SRCCOPY); */ m_picture1.SetBitmap(originalImage);




Reply With Quote
