opencv显示到mfc

来源:互联网 发布:windows phone 8.1软件 编辑:程序博客网 时间:2024/06/05 17:27
CDC *pDC = GetDlgItem(ID)->GetDC();
HDC hDC= pDC->GetSafeHdc();
CRect rect;
GetDlgItem(ID)->GetClientRect(&rect);
CvvImage cimg;
cimg.CopyOf(iplimg);
cimg.DrawToHDC(hDC,&rect);
ReleaseDC(pDC);
原创粉丝点击