[讨论][求助]我在显示函数中加了张图为什么当把窗口缩小图象颜色失真呢?
CRect rect;
GetClientRect(&rect);
CBitmap bit;
bit.LoadBitmap(IDB_BITMAP1);
CBitmap bitmap;
BITMAP bi;
bitmap.LoadBitmap(IDB_BITMAP1);
bitmap.GetBitmap(&bi);
CDC dc;
dc.CreateCompatibleDC(pDC);
dc.SelectObject(&bit);
pDC->StretchBlt(0,0,rect.Width(),rect.Height(),&dc,0,0,bi.bmWidth,bi.bmHeight,SRCCOPY);