Esempio n. 1
0
        void lsView_ColorChanged(object sender, ColorChooseControl.ColorChangedEventArgs e)
        {
            _currentColor = lsView.CurrentColor;

            numR.Value = _currentColor.Red;
            numG.Value = _currentColor.Green;
            numB.Value = _currentColor.Blue;

            numHue.Value = new decimal(lsView.Hue);
            numSat.Value = new decimal(lsView.Saturation * 100);
            numLum.Value = new decimal(lsView.Luminance * 100);
        }
Esempio n. 2
0
 void saturationView_ColorChanged(object sender, ColorChooseControl.ColorChangedEventArgs e)
 {
     numSat.Value = new decimal(saturationView.Value * 100);
 }
Esempio n. 3
0
 void hueView_ColorChanged(object sender, ColorChooseControl.ColorChangedEventArgs e)
 {
     numHue.Value = new decimal(hueView.Value);
     luminanceView.BaseColor = e.NewColor;
 }
Esempio n. 4
0
 void luminanceView_ColorChanged(object sender, ColorChooseControl.ColorChangedEventArgs e)
 {
     numLum.Value = new decimal(luminanceView.Value * 100);
 }