CDC中
CDC->StretchBlt(int x,int y,int nWidth,int nHeight,CDC *pSrcDC, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight,DWORD dwRop)
CDC->BitBlt(int x, int y, int nWidth,int nHeight,CDC *pSrcDC, int xSrc, int ySrc,DWORD dwRop)
HDC中
1.
HDC.StretchBlt(HDC hDestDC, int xDest,int yDest,int nDestWidth,int nDestHeight,DWORD dwRop)
2.
HDC.StretchBlt(HDC hDestDC, const RECT &rectDest,DWORD dwRop)
3.
HDC.StretchBlt(HDC hDestDC, int xDest,int yDest,int nDestWidth,int nDestHeight,, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, DWORD dwRop)
4.
HDC.StretchBlt(HDC hDestDC, const RECT &rectDest,const RECT &rectSrc, DWORD dwRop)
1.
HDC.BitBlt(HDC hDestDC, int xDest,int yDest,DWORD dwRop)
2.
HDC.BitBlt(HDC hDestDC, const POINT &pointDest,DWORD dwRop)
3.
HDC.BitBlt(HDC hDestDC, int xDest,int yDest,int nDestWidth,int nDestHeight,int xSrc, int ySrc, DWORD dwRop)
4.
HDC.BitBlt(HDC hDestDC, const RECT &rectDest, const POINT &pointSrc,DWORD dwRop)
pDC 是 类指针
HDC 是 windows句柄
/
通过pDC获得hdc:
HDC hdc=pDC->GetSafeHdc();
/
通过hdc获得pDC:
CDC *pDC=new CDC;
pDC->Attach(hdc);
补充:CImage