Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 private void kbtnGenerateComplementaryColour_Click(object sender, EventArgs e)
 {
     cpbContrastColour.BackColor = ColourExtensions.RetrieveContrastColour(cpbBaseColour.BackColor, kchkKeepOpacityValues.Checked);
 }