| 1742 | } |
| 1743 | |
| 1744 | void CMatchToolDlg::LoadDst () |
| 1745 | { |
| 1746 | CRect rectDst; |
| 1747 | ::GetWindowRect (GetDlgItem (IDC_STATIC_DST_VIEW)->m_hWnd, rectDst); |
| 1748 | double dScaleX = rectDst.Width () / (double)m_matDst.cols; |
| 1749 | double dScaleY = rectDst.Height () / (double)m_matDst.rows; |
| 1750 | m_dDstScale = min (dScaleX, dScaleY); |
| 1751 | RefreshDstView (); |
| 1752 | CString strSize; |
| 1753 | strSize.Format (L"%s : %d X %d", m_strLanDstImageSize, m_matDst.cols, m_matDst.rows); |
| 1754 | m_statusBar.SetPaneText (2, strSize); |
| 1755 | } |
| 1756 | double g_dCompensationX = 0;//補償ScrollBar取整數造成的誤差 |
| 1757 | double g_dCompensationY = 0; |
| 1758 | #define BAR_SIZE 100 |