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

Method ChangeTo5x5Sampling

ColorCop/ColorCopDlg.cpp:2686–2702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2684}
2685
2686void CColorCopDlg::ChangeTo5x5Sampling() {
2687 // Only change if we're not already in 5x5 mode
2688 if ((m_Appflags & Sampling5x5) == 0) {
2689 // Clear all sampling modes, then enable 5x5
2690 m_Appflags &= ~(Sampling1 | Sampling3x3 | SamplingMULTI);
2691 m_Appflags |= Sampling5x5;
2692
2693 // Update cursor
2694 if (CWinApp* pApp = AfxGetApp())
2695 m_EyeLoc.SetIcon(pApp->LoadCursor(IDC_EYEDROPPER_5X5));
2696 }
2697
2698 // 5×5 → offset = 2
2699 m_iSamplingOffset = 2;
2700
2701 SetStatusBarText(IDS_5PIXEL, 0);
2702}
2703
2704
2705void CColorCopDlg::OnUpdatePopupSampling1pixel(CCmdUI* pCmdUI) {

Callers

nothing calls this directly

Calls 1

SetIconMethod · 0.80

Tested by

no test coverage detected