private void ColorPallete_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { OnColorPicked?.Invoke(((Bitmap)BackgroundImage).GetPixel(e.X, e.Y)); } }
private void ColorValueChanged() { var newColor = new Color( _colorSliderR.ColorValue, _colorSliderG.ColorValue, _colorSliderB.ColorValue, _colorSliderA.ColorValue ); OnColorPicked?.Invoke(newColor); _lastColor = newColor; }