CBitmap *pOldBmp;
BITMAP bm;
CDC mdc;
m_Bmp->m_hObject = (HBITMAP)::LoadImage(
AfxGetInstanceHandle(),
path, //image路径
IMAGE_BITMAP,
0,
0,
LR_LOADFROMFILE | LR_CREATEDIBSECTION);
mdc.CreateCompatibleDC(pDC);
pOldBmp = mdc.SelectObject(m_Bmp);
m_Bmp->GetBitmap(&bm);
pDC->StretchBlt( point.x, point.y, imageWH.x, imageWH.y, &mdc, imagePoint.x, imagePoint.y, bm.bmWidth, bm.bmHeight, SRCCOPY);
慕码人8056858
扬帆大鱼