MCPcopy Create free account
hub / github.com/bluescan/tacentview / OnRedChannel

Method OnRedChannel

Src/TacentView.cpp:1123–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1121void Viewer::OnLevels() { if (CurrImage && CurrImage->IsLoaded() && !CurrImage->IsAltPictureEnabled()) Request_LevelsModal = true; }
1122void Viewer::OnQuantize() { if (CurrImage && CurrImage->IsLoaded() && !CurrImage->IsAltPictureEnabled()) Request_QuantizeModal = true; }
1123void Viewer::OnRedChannel() { Config::ProfileData& profile = Config::GetProfileData(); if (DrawChannel_AsIntensity) { DrawChannel_R = true; DrawChannel_G = false; DrawChannel_B = false; DrawChannel_A = false; } else DrawChannel_R = !DrawChannel_R; profile.ShowChannelFilter = true; }
1124void Viewer::OnGreenChannel() { Config::ProfileData& profile = Config::GetProfileData(); if (DrawChannel_AsIntensity) { DrawChannel_R = false; DrawChannel_G = true; DrawChannel_B = false; DrawChannel_A = false; } else DrawChannel_G = !DrawChannel_G; profile.ShowChannelFilter = true; }
1125void Viewer::OnBlueChannel() { Config::ProfileData& profile = Config::GetProfileData(); if (DrawChannel_AsIntensity) { DrawChannel_R = false; DrawChannel_G = false; DrawChannel_B = true; DrawChannel_A = false; } else DrawChannel_B = !DrawChannel_B; profile.ShowChannelFilter = true; }
1126void Viewer::OnAlphaChannel() { Config::ProfileData& profile = Config::GetProfileData(); if (DrawChannel_AsIntensity) { DrawChannel_R = false; DrawChannel_G = false; DrawChannel_B = false; DrawChannel_A = true; } else DrawChannel_A = !DrawChannel_A; profile.ShowChannelFilter = true; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected