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

Method OnColorReverse

ColorCop/ColorCopDlg.cpp:2364–2376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2362}
2363
2364void CColorCopDlg::OnColorReverse() {
2365 // Invert the current RGB color (per‑channel): new = 255 - old.
2366 // This produces the photographic "negative" of the selected color.
2367 SetStatusBarText(IDS_REVERSECOLOR, 0);
2368
2369 m_Reddec = RGB_MAX - m_Reddec;
2370 m_Greendec = RGB_MAX - m_Greendec;
2371 m_Bluedec = RGB_MAX - m_Bluedec;
2372
2373 CalcColorPal();
2374 OnconvertRGB();
2375 OnCopytoclip();
2376}
2377
2378void CColorCopDlg::OnPopupColorConverttograyscale() {
2379 CString strStatus;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected