E
Euler
Unregistered / Unconfirmed
GUEST, unregistred user!
PicDC:=GetDC(MCHandle); <br> try <br> StretchDIBits(PicDC, <br> nDestX,nDestY, <br> nDestWidth,nDestHeight, <br> 0,0, <br> m_pSmallInfo^.bmiHeader.biWidth, <br> m_pSmallInfo^.bmiHeader.biHeight, <br> m_pImageBuffer <br> m_pSmallInfo^, <br> DIB_RGB_COLORS, <br> SRCCOPY); <br> finally <br> ReleaseDC(MCHandle,PicDC); <br> end; <br>发现如果分配图象缓冲区m_pImageBuffer时,如果先分配其他缓冲区,再分配它,图象就没有显示,只有先分配它时,才能正常显示图象,这是为什么?