Beispiel #1
0
        public ColorPanel()
        {
            InitializeComponent();

            redColorSlider.Renderer   = _redRenderer = new ColorSliderRenderer(redColorSlider);
            greenColorSlider.Renderer = _greenRenderer = new ColorSliderRenderer(greenColorSlider);
            blueColorSlider.Renderer  = _blueRenderer = new ColorSliderRenderer(blueColorSlider);
            alphaColorSlider.Renderer = _alphaRenderer = new AlphaSliderRenderer(alphaColorSlider);

            hueColorSlider.Renderer        = _hueRenderer = new HueSliderRenderer(hueColorSlider);
            saturationColorSlider.Renderer = _saturationRenderer = new SaturationSliderRenderer(saturationColorSlider);
            valueColorSlider.Renderer      = _valueRenderer = new ValueSliderRenderer(valueColorSlider);

            SetColor(ColorManager.FromRGBA(255, 255, 255, 255));
        }
Beispiel #2
0
		public ColorPanel()
		{
			InitializeComponent();

			redColorSlider.Renderer = _redRenderer = new ColorSliderRenderer(redColorSlider);
			greenColorSlider.Renderer = _greenRenderer = new ColorSliderRenderer(greenColorSlider);
			blueColorSlider.Renderer = _blueRenderer = new ColorSliderRenderer(blueColorSlider);
			alphaColorSlider.Renderer = _alphaRenderer = new AlphaSliderRenderer(alphaColorSlider);

			hueColorSlider.Renderer = _hueRenderer = new HueSliderRenderer(hueColorSlider);
			saturationColorSlider.Renderer = _saturationRenderer = new SaturationSliderRenderer(saturationColorSlider);
			valueColorSlider.Renderer = _valueRenderer = new ValueSliderRenderer(valueColorSlider);

			SetColor(ColorManager.FromRGBA(255, 255, 255, 255));
		}