Example #1
0
        private void UpdatePixelColor(Point pixelPosition, RgbaColor rgbaColor)
        {
            if (this.imageController.IsGrayscale)
            {
                this.rgbGrayColorToolStripStatusLabel.Text = FormattableString.Invariant($"Gray: {rgbaColor.R}");
                this.hsvColorToolStripStatusLabel.Text     = string.Empty;
            }
            else
            {
                this.rgbGrayColorToolStripStatusLabel.Text = rgbaColor.ToString();

                HslaColor hslaColor = rgbaColor;

                this.hsvColorToolStripStatusLabel.Text = hslaColor.ToString();
            }

            this.UpdateStatusStripSeparators();
        }