| 2666 | } |
| 2667 | |
| 2668 | void CColorCopDlg::ChangeTo3x3Sampling() { |
| 2669 | // Only change if we're not already in 3x3 mode |
| 2670 | if ((m_Appflags & Sampling3x3) == 0) { |
| 2671 | // Clear all sampling modes, then enable 3x3 |
| 2672 | m_Appflags &= ~(Sampling1 | Sampling5x5 | SamplingMULTI); |
| 2673 | m_Appflags |= Sampling3x3; |
| 2674 | |
| 2675 | // Update cursor |
| 2676 | if (CWinApp* pApp = AfxGetApp()) |
| 2677 | m_EyeLoc.SetIcon(pApp->LoadCursor(IDC_EYEDROPPER_3X3)); |
| 2678 | } |
| 2679 | |
| 2680 | // 3×3 → offset = 1 |
| 2681 | m_iSamplingOffset = 1; |
| 2682 | |
| 2683 | SetStatusBarText(IDS_3PIXEL, 0); |
| 2684 | } |
| 2685 | |
| 2686 | void CColorCopDlg::ChangeTo5x5Sampling() { |
| 2687 | // Only change if we're not already in 5x5 mode |