Beispiel #1
0
        private void Tint(object sender, EventArgs e)
        {
            using var tintDialog = new InputColorDialog(
                      "Tint", "The color to tint the image with:");

            if (tintDialog.ShowDialog() == DialogResult.OK)
            {
                var color = tintDialog.ColorResult;

                _state.Tint(color);
                _lastCommand = new Action(() => _state.Tint(color));
            }

            RefreshImageState();
        }
Beispiel #2
0
        private void Vignette(object sender, EventArgs e)
        {
            using var vignetteDialog = new InputColorDialog(
                      "Vignette", "The color to vignette the image with:");

            if (vignetteDialog.ShowDialog() == DialogResult.OK)
            {
                var color = vignetteDialog.ColorResult;

                _state.Vignette(color);
                _lastCommand = new Action(() => _state.Vignette(color));
            }

            RefreshImageState();
        }
Beispiel #3
0
        private void BackgroundColor(object sender, EventArgs e)
        {
            using var colorDialog = new InputColorDialog(
                      "Background Color", "The color to paint the background with:");

            if (colorDialog.ShowDialog() == DialogResult.OK)
            {
                var color = colorDialog.ColorResult;

                _state.BackgroundColor(color);
                _lastCommand = new Action(() => _state.BackgroundColor(color));
            }

            RefreshImageState();
        }