MCPcopy Create free account
hub / github.com/ColorCop/ColorCop / ChangeTo3x3Sampling

Method ChangeTo3x3Sampling

ColorCop/ColorCopDlg.cpp:2668–2684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2666}
2667
2668void 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
2686void CColorCopDlg::ChangeTo5x5Sampling() {
2687 // Only change if we're not already in 5x5 mode

Callers

nothing calls this directly

Calls 1

SetIconMethod · 0.80

Tested by

no test coverage detected