| 2362 | } |
| 2363 | |
| 2364 | void 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 | |
| 2378 | void CColorCopDlg::OnPopupColorConverttograyscale() { |
| 2379 | CString strStatus; |
nothing calls this directly
no outgoing calls
no test coverage detected