如何使用 SetDIBitsToDevice 函数拷贝指定区域到DC
如,我要实现下面的功能
void Draw(long dstX, long dstY, long dstWidth, long dstHeight,HDC hDC,long srcX, long srcY, long srcWidth, long srcHeight)
{
::SetDIBitsToDevice(hDC, dstX, dstY,srcWidth,srcHeight,0 ,0,0, m_bih.biHeight,m_lpData, // 数据区域
(LPBITMAPINFO)&m_bih, DIB_RGB_COLORS);
}
不知道 SetDIBitsToDevice 的参数如何添写?