.........
{
.....
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);
}
{
.....
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);
}
댓글
댓글 쓰기