Ejemplo n.º 1
0
        private void RedScrollBar_ValueChanged(object sender, EventArgs e)
        {
            Color center = ColorConversion.ColorFromhsb(
                (float)(hScrollBar6.Value * 2.0),
                (float)(hScrollBar5.Value / 255.0),
                (float)(hScrollBar4.Value / 255.0));

            panel2.BackColor = center;
            label18.Text     = hScrollBar6.Value.ToString();
            label19.Text     = hScrollBar5.Value.ToString();
            label20.Text     = hScrollBar4.Value.ToString();
            UpdateConfig();
        }
Ejemplo n.º 2
0
        private void hScrollBar_ValueChanged(object sender, EventArgs e)
        {
            Color center = ColorConversion.ColorFromhsb(
                (float)(centerH.Value * 2.0),
                (float)(centerS.Value / 255.0),
                (float)(centerV.Value / 255.0));

            panelCenter.BackColor = center;
            labelCenterH.Text     = centerH.Value.ToString();
            labelCenterS.Text     = centerS.Value.ToString();
            labelCenterV.Text     = centerV.Value.ToString();
            UpdateConfig();
        }