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

Method ChangeTo1pixelSampling

ColorCop/ColorCopDlg.cpp:2653–2666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2651}
2652
2653void CColorCopDlg::ChangeTo1pixelSampling() {
2654 // Only change if we're not already in 1‑pixel mode
2655 if ((m_Appflags & Sampling1) == 0) {
2656 // Clear all sampling modes, then enable 1‑pixel
2657 m_Appflags &= ~(Sampling3x3 | Sampling5x5 | SamplingMULTI);
2658 m_Appflags |= Sampling1;
2659
2660 // Update cursor
2661 if (CWinApp* pApp = AfxGetApp())
2662 m_EyeLoc.SetIcon(pApp->LoadCursor(IDC_EYEDROPPER));
2663 }
2664
2665 SetStatusBarText(IDS_1PIXEL, 0);
2666}
2667
2668void CColorCopDlg::ChangeTo3x3Sampling() {
2669 // Only change if we're not already in 3x3 mode

Callers

nothing calls this directly

Calls 1

SetIconMethod · 0.80

Tested by

no test coverage detected