......... { ..... DrawIplToHDC(iplBufColor, IDC_STA_IMAGE); } void DrawIplToHDC(IplImage *image, UINT ID) { CDC* pDC = GetDlgItem(ID)->GetDC(); CRect rcView; GetDlgItem(ID)->GetClientRect(&rcView); CvvImage* cvvImgage; cvvImgage->CopyOf(image); cvvImgage->DrawToHDC(pDC->GetSafeHdc(), &rcView); ReleaseDC(pDC); }
Machine Vision & Image Processing