| | |
| | | IMPLEMENT_DYNAMIC(CCameraViewAlign, CCameraImageView) |
| | | |
| | | CCameraViewAlign::CCameraViewAlign(CWnd *pParentWnd) : CCameraImageView(pParentWnd) |
| | | |
| | | { |
| | | m_bDrawROIRect = TRUE; |
| | | |
| | |
| | | { |
| | | CCHBufferDC *pDC = new CCHBufferDC(this); // device context for painting |
| | | |
| | | // LYW 20200810 수정 |
| | | if (d_FindScore != 0) |
| | | { |
| | | if (d_FindScore > d_MatchingRate) |
| | | { |
| | | pDC->SetTextColor(RGB(0, 255, 0)); |
| | | } |
| | | |
| | | else if (d_FindScore < d_MatchingRate) |
| | | { |
| | | pDC->SetTextColor(RGB(255, 0, 0)); |
| | | } |
| | | else |
| | | { |
| | | pDC->SetTextColor(RGB(255, 255, 255)); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | pDC->SetTextColor(RGB(255, 255, 255)); |
| | | } |
| | | |
| | | UpdateImageView(pDC); |
| | | |
| | | if (m_bDrawROIRect) DrawROIRect(pDC); |