private void tmrUpdateUI_Tick(object sender, EventArgs e) { cpbBaseColour.BackColor = Color.FromArgb(Convert.ToInt32(knumBaseAlphaChannelValue.Value), Convert.ToInt32(knumBaseRedChannelValue.Value), Convert.ToInt32(knumBaseGreenChannelValue.Value), Convert.ToInt32(knumBaseBlueChannelValue.Value)); if (kchkAutomateColourContrastValues.Checked) { cpbContrastColour.BackColor = ColourExtensions.RetrieveContrastColour(cpbBaseColour.BackColor, kchkKeepOpacityValues.Checked); } }
private void kbtnGenerateComplementaryColour_Click(object sender, EventArgs e) { cpbContrastColour.BackColor = ColourExtensions.RetrieveContrastColour(cpbBaseColour.BackColor, kchkKeepOpacityValues.Checked); }