cscの作法 その426

# 概要
cscの作法、調べてみた。
NumericUpDown使ってみた。

# 参考にしたページ。

https://github.com/ytyaru/ColorEditor20160621

# 写真

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/18104/c71b7b51-d364-015b-659c-7fc2158ef310.png)

# サンプルコード

```
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ColorEditor20160621
{
	public class Hsv {
		private float _h;
		private float _s;
		private float _v;
		public float H {
			get {
				return _h;
			}
			set {
				_h = value;
			}
		}
		public float S {
			get {
				return _s;
			}
			set {
				_s = value;
			}
		}
		public float V {
			get {
				return _v;
			}
			set {
				_v = value;
			}
		}
		public float MinH {
			get {
				return 0.0f;
			}
		}
		public float MinS {
			get {
				return 0.0f;
			}
		}
		public float MinV {
			get {
				return 0.0f;
			}
		}
		public float MaxH {
			get {
				return 360.0f;
			}
		}
		public float MaxS {
			get {
				return 100.0f;
			}
		}
		public float MaxV {
			get {
				return 100.0f;
			}
		}
		public SaturationModelType SaturationModel = SaturationModelType.Cylinder;
		public enum SaturationModelType {
			Cone,
			Cylinder,
		}
		public System.Drawing.Color ToColor() {
			float r = _v;
			float g = _v;
			float b = _v;
			if (_s > 0.0f)
			{
				float h2 = _h / 60.0f;
				int i = (int) h2;
				float f = h2 - (float) i;
				switch (i)
				{
				default:
				case 0:
					g *= 1 - _s * (1 - f);
					b *= 1 - _s;
				break;
				case 1:
					r *= 1 - _s * f;
					b *= 1 - _s;
				break;
				case 2:
					r *= 1 - _s;
					b *= 1 - _s * (1 - f);
				break;
				case 3:
					r *= 1 - _s;
					g *= 1 - _s * f;
				break;
				case 4:
					r *= 1 - _s * (1 - f);
					g *= 1 - _s;
				break;
				case 5:
					g *= 1 - _s;
					b *= 1 - _s * f;
				break;
				}
				if (SaturationModelType.Cone == SaturationModel)
				{
					r /= _v;
					g /= _v;
					b /= _v;
				}
			}
			return System.Drawing.Color.FromArgb((int) (r * 255), (int) (g * 255), (int) (b * 255));
		}
		public void FromRgb(int red, int green, int blue) {
			float r = (float) red / 255.0f;
			float g = (float) green / 255.0f;
			float b = (float) blue / 255.0f;
			float min = Math.Min(Math.Min(r, g), b);
			float max = Math.Max(Math.Max(r, g), b);
			_v = max;
			if (0 == max)
			{
				_s = 0;
			}
			else
			{
				if (SaturationModelType.Cone == SaturationModel)
				{
					_s = max - min;
				}
				else
				{
					_s = (max - min) / max;
				}
			}
			if (min == max)
			{
				H = 0;
			}
			else
			{
				if (min == b)
				{
					_h = 60 * ((g - r) / (max - min)) + 60;
				}
				else if (min == r)
				{
					_h = 60 * ((b - g) / (max - min)) + 180;
				}
				else
				{
					_h = 60 * ((r - b) / (max - min)) + 300;
				}
				if (_h < MinH || MaxH < _h)
				{
					_h %= MaxH;
				}
			}
		}
		public void FromColor(System.Drawing.Color color) {
			FromRgb((int) color.R, (int) color.G, (int) color.B);
		}
	}
	public partial class ColorEditorForm: Form {
		private Color selectedColor;
		private Hsv _hsv = new Hsv();
		EventHandler numericUpDown1ValueChanged;
		EventHandler numericUpDown2ValueChanged;
		EventHandler numericUpDown3ValueChanged;
		EventHandler trackBar1ValueChanged;
		EventHandler trackBar2ValueChanged;
		EventHandler trackBar3ValueChanged;
		EventHandler numericUpDown4ValueChanged;
		EventHandler numericUpDown5ValueChanged;
		EventHandler numericUpDown6ValueChanged;
		EventHandler trackBar4ValueChanged;
		EventHandler trackBar5ValueChanged;
		EventHandler trackBar6ValueChanged;
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.TrackBar trackBar3;
		private System.Windows.Forms.NumericUpDown numericUpDown3;
		private System.Windows.Forms.TrackBar trackBar2;
		private System.Windows.Forms.NumericUpDown numericUpDown2;
		private System.Windows.Forms.TrackBar trackBar1;
		private System.Windows.Forms.NumericUpDown numericUpDown1;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.TrackBar trackBar6;
		private System.Windows.Forms.NumericUpDown numericUpDown6;
		private System.Windows.Forms.TrackBar trackBar5;
		private System.Windows.Forms.NumericUpDown numericUpDown5;
		private System.Windows.Forms.TrackBar trackBar4;
		private System.Windows.Forms.NumericUpDown numericUpDown4;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Panel panel3;
		public ColorEditorForm() {
			InitializeComponent();
			Type t = typeof(System.Windows.Forms.Control);
			System.Reflection.MethodInfo mi = t.GetMethod("SetStyle", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public);
			mi.Invoke(this.trackBar1, new object[] {
				ControlStyles.Opaque,
				true
			});
			mi.Invoke(this.trackBar2, new object[] {
				ControlStyles.Opaque,
				true
			});
			mi.Invoke(this.trackBar3, new object[] {
				ControlStyles.Opaque,
				true
			});
			mi.Invoke(this.trackBar4, new object[] {
				ControlStyles.Opaque,
				true
			});
			mi.Invoke(this.trackBar5, new object[] {
				ControlStyles.Opaque,
				true
			});
			mi.Invoke(this.trackBar6, new object[] {
				ControlStyles.Opaque,
				true
			});
			this.panel1.BackColor = Color.Transparent;
			this.panel2.BackColor = Color.Transparent;
			this.panel3.BackColor = Color.Transparent;
			this.label1.BackColor = Color.Transparent;
			this.label2.BackColor = Color.Transparent;
			this.label3.BackColor = Color.Transparent;
			this.label4.BackColor = Color.Transparent;
			this.label5.BackColor = Color.Transparent;
			this.label6.BackColor = Color.Transparent;
			this.numericUpDown1ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged);
			this.numericUpDown2ValueChanged += new System.EventHandler(this.numericUpDown2_ValueChanged);
			this.numericUpDown3ValueChanged += new System.EventHandler(this.numericUpDown3_ValueChanged);
			this.numericUpDown4ValueChanged += new System.EventHandler(this.numericUpDown4_ValueChanged);
			this.numericUpDown5ValueChanged += new System.EventHandler(this.numericUpDown5_ValueChanged);
			this.numericUpDown6ValueChanged += new System.EventHandler(this.numericUpDown6_ValueChanged);
			this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChanged;
			this.numericUpDown4.ValueChanged += this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged += this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged += this.numericUpDown6ValueChanged;
			this.trackBar1ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged);
			this.trackBar2ValueChanged += new System.EventHandler(this.trackBar2_ValueChanged);
			this.trackBar3ValueChanged += new System.EventHandler(this.trackBar3_ValueChanged);
			this.trackBar4ValueChanged += new System.EventHandler(this.trackBar4_ValueChanged);
			this.trackBar5ValueChanged += new System.EventHandler(this.trackBar5_ValueChanged);
			this.trackBar6ValueChanged += new System.EventHandler(this.trackBar6_ValueChanged);
			this.trackBar1.ValueChanged += this.trackBar1ValueChanged;
			this.trackBar2.ValueChanged += this.trackBar2ValueChanged;
			this.trackBar3.ValueChanged += this.trackBar3ValueChanged;
			this.trackBar4.ValueChanged += this.trackBar4ValueChanged;
			this.trackBar5.ValueChanged += this.trackBar5ValueChanged;
			this.trackBar6.ValueChanged += this.trackBar6ValueChanged;
			this.SetUIColor();
		}
		private void numericUpDown1_ValueChanged(object sender, EventArgs e) {
			this.trackBar1.ValueChanged -= this.trackBar1ValueChanged;
			this.numericUpDown4.ValueChanged -= this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged -= this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged -= this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged -= this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged -= this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged -= this.trackBar6_ValueChanged;
			this._hsv.H = (float) this.numericUpDown1.Value;
			this.trackBar1.Value = (int) this.numericUpDown1.Value;
			Color c = this._hsv.ToColor();
			this.numericUpDown4.Value = c.R;
			this.numericUpDown5.Value = c.G;
			this.numericUpDown6.Value = c.B;
			this.trackBar4.Value = c.R;
			this.trackBar5.Value = c.G;
			this.trackBar6.Value = c.B;
			this.trackBar1.ValueChanged += this.trackBar1ValueChanged;
			this.numericUpDown4.ValueChanged += this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged += this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged += this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged += this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged += this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged += this.trackBar6_ValueChanged;
			this.SetUIColor();
		}
		private void numericUpDown2_ValueChanged(object sender, EventArgs e) {
			this.trackBar2.ValueChanged -= this.trackBar2ValueChanged;
			this.numericUpDown4.ValueChanged -= this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged -= this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged -= this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged -= this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged -= this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged -= this.trackBar6_ValueChanged;
			this._hsv.S = (float) this.numericUpDown2.Value / 100.0f;
			this.trackBar2.Value = (int) this.numericUpDown2.Value;
			Color c = this._hsv.ToColor();
			this.numericUpDown4.Value = c.R;
			this.numericUpDown5.Value = c.G;
			this.numericUpDown6.Value = c.B;
			this.trackBar4.Value = c.R;
			this.trackBar5.Value = c.G;
			this.trackBar6.Value = c.B;
			this.trackBar2.ValueChanged += this.trackBar2ValueChanged;
			this.numericUpDown4.ValueChanged += this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged += this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged += this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged += this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged += this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged += this.trackBar6_ValueChanged;
			this.SetUIColor();
		}
		private void numericUpDown3_ValueChanged(object sender, EventArgs e) {
			this.trackBar3.ValueChanged -= this.trackBar3ValueChanged;
			this.numericUpDown4.ValueChanged -= this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged -= this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged -= this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged -= this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged -= this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged -= this.trackBar6_ValueChanged;
			this._hsv.V = (float) this.numericUpDown3.Value / 100.0f;
			this.trackBar3.Value = (int) this.numericUpDown3.Value;
			Color c = this._hsv.ToColor();
			this.numericUpDown4.Value = c.R;
			this.numericUpDown5.Value = c.G;
			this.numericUpDown6.Value = c.B;
			this.trackBar4.Value = c.R;
			this.trackBar5.Value = c.G;
			this.trackBar6.Value = c.B;
			this.trackBar3.ValueChanged += this.trackBar3ValueChanged;
			this.numericUpDown4.ValueChanged += this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged += this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged += this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged += this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged += this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged += this.trackBar6_ValueChanged;
			this.SetUIColor();
		}
		private void numericUpDown4_ValueChanged(object sender, EventArgs e) {
			this.trackBar4.ValueChanged -= this.trackBar4ValueChanged;
			this.numericUpDown1.ValueChanged -= this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged -= this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged -= this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged -= this.trackBar1ValueChanged;
			this.trackBar2.ValueChanged -= this.trackBar2ValueChanged;
			this.trackBar3.ValueChanged -= this.trackBar3ValueChanged;
			this._hsv.FromRgb((int) this.numericUpDown4.Value, (int) this.numericUpDown5.Value, (int) this.numericUpDown6.Value);
			this.numericUpDown1.Value = (decimal) this._hsv.H;
			this.numericUpDown2.Value = (decimal) (this._hsv.S * 100.0f);
			this.numericUpDown3.Value = (decimal) (this._hsv.V * 100.0f);
			this.trackBar1.Value = (int) this._hsv.H;
			this.trackBar2.Value = (int) (this._hsv.S * 100.0f);
			this.trackBar3.Value = (int) (this._hsv.V * 100.0f);
			this.trackBar4.Value = (int) this.numericUpDown4.Value;
			this.trackBar5.Value = (int) this.numericUpDown5.Value;
			this.trackBar6.Value = (int) this.numericUpDown6.Value;
			this.trackBar4.ValueChanged += this.trackBar4ValueChanged;
			this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged += this.trackBar1ValueChanged;
			this.trackBar2.ValueChanged += this.trackBar2ValueChanged;
			this.trackBar3.ValueChanged += this.trackBar3ValueChanged;
			this.SetUIColor();
		}
		private void numericUpDown5_ValueChanged(object sender, EventArgs e) {
			this.trackBar5.ValueChanged -= this.trackBar5ValueChanged;
			this.numericUpDown1.ValueChanged -= this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged -= this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged -= this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged -= this.trackBar1ValueChanged;
			this.trackBar2.ValueChanged -= this.trackBar2ValueChanged;
			this.trackBar3.ValueChanged -= this.trackBar3ValueChanged;
			this._hsv.FromRgb((int) this.numericUpDown4.Value, (int) this.numericUpDown5.Value, (int) this.numericUpDown6.Value);
			this.numericUpDown1.Value = (decimal) this._hsv.H;
			this.numericUpDown2.Value = (decimal) (this._hsv.S * 100.0f);
			this.numericUpDown3.Value = (decimal) (this._hsv.V * 100.0f);
			this.trackBar1.Value = (int) this._hsv.H;
			this.trackBar2.Value = (int) (this._hsv.S * 100.0f);
			this.trackBar3.Value = (int) (this._hsv.V * 100.0f);
			this.trackBar4.Value = (int) this.numericUpDown4.Value;
			this.trackBar5.Value = (int) this.numericUpDown5.Value;
			this.trackBar6.Value = (int) this.numericUpDown6.Value;
			this.trackBar5.ValueChanged += this.trackBar5ValueChanged;
			this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged += this.trackBar1ValueChanged;
			this.trackBar2.ValueChanged += this.trackBar2ValueChanged;
			this.trackBar3.ValueChanged += this.trackBar3ValueChanged;
			this.SetUIColor();
		}
		private void numericUpDown6_ValueChanged(object sender, EventArgs e) {
			this.trackBar6.ValueChanged -= this.trackBar6ValueChanged;
			this.numericUpDown1.ValueChanged -= this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged -= this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged -= this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged -= this.trackBar1ValueChanged;
			this.trackBar2.ValueChanged -= this.trackBar2ValueChanged;
			this.trackBar3.ValueChanged -= this.trackBar3ValueChanged;
			this._hsv.FromRgb((int) this.numericUpDown4.Value, (int) this.numericUpDown5.Value, (int) this.numericUpDown6.Value);
			this.numericUpDown1.Value = (decimal) this._hsv.H;
			this.numericUpDown2.Value = (decimal) (this._hsv.S * 100.0f);
			this.numericUpDown3.Value = (decimal) (this._hsv.V * 100.0f);
			this.trackBar1.Value = (int) this._hsv.H;
			this.trackBar2.Value = (int) (this._hsv.S * 100.0f);
			this.trackBar3.Value = (int) (this._hsv.V * 100.0f);
			this.trackBar4.Value = (int) this.numericUpDown4.Value;
			this.trackBar5.Value = (int) this.numericUpDown5.Value;
			this.trackBar6.Value = (int) this.numericUpDown6.Value;
			this.trackBar6.ValueChanged += this.trackBar6ValueChanged;
			this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChanged;
			this.trackBar4.ValueChanged += this.trackBar4ValueChanged;
			this.trackBar5.ValueChanged += this.trackBar5ValueChanged;
			this.trackBar6.ValueChanged += this.trackBar6ValueChanged;
			this.SetUIColor();
		}
		private void trackBar1_ValueChanged(object sender, EventArgs e) {
			this.numericUpDown1.ValueChanged -= this.numericUpDown1ValueChanged;
			this.numericUpDown4.ValueChanged -= this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged -= this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged -= this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged -= this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged -= this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged -= this.trackBar6_ValueChanged;
			this._hsv.H = (float) this.trackBar1.Value;
			this.numericUpDown1.Value = this.trackBar1.Value;
			Color c = this._hsv.ToColor();
			this.numericUpDown4.Value = c.R;
			this.numericUpDown5.Value = c.G;
			this.numericUpDown6.Value = c.B;
			this.trackBar4.Value = c.R;
			this.trackBar5.Value = c.G;
			this.trackBar6.Value = c.B;
			this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChanged;
			this.numericUpDown4.ValueChanged += this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged += this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged += this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged += this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged += this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged += this.trackBar6_ValueChanged;
			this.SetUIColor();
		}
		private void trackBar2_ValueChanged(object sender, EventArgs e) {
			this.numericUpDown2.ValueChanged -= this.numericUpDown2ValueChanged;
			this.numericUpDown4.ValueChanged -= this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged -= this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged -= this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged -= this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged -= this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged -= this.trackBar6_ValueChanged;
			this._hsv.S = (float) this.trackBar2.Value / 100.0f;
			this.numericUpDown2.Value = this.trackBar2.Value;
			Color c = this._hsv.ToColor();
			this.numericUpDown4.Value = c.R;
			this.numericUpDown5.Value = c.G;
			this.numericUpDown6.Value = c.B;
			this.trackBar4.Value = c.R;
			this.trackBar5.Value = c.G;
			this.trackBar6.Value = c.B;
			this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChanged;
			this.numericUpDown4.ValueChanged += this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged += this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged += this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged += this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged += this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged += this.trackBar6_ValueChanged;
			this.SetUIColor();
		}
		private void trackBar3_ValueChanged(object sender, EventArgs e) {
			this.numericUpDown3.ValueChanged -= this.numericUpDown3ValueChanged;
			this.numericUpDown4.ValueChanged -= this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged -= this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged -= this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged -= this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged -= this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged -= this.trackBar6_ValueChanged;
			this._hsv.V = (float) this.trackBar3.Value / 100.0f;
			this.numericUpDown3.Value = this.trackBar3.Value;
			Color c = this._hsv.ToColor();
			this.numericUpDown4.Value = c.R;
			this.numericUpDown5.Value = c.G;
			this.numericUpDown6.Value = c.B;
			this.trackBar4.Value = c.R;
			this.trackBar5.Value = c.G;
			this.trackBar6.Value = c.B;
			this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChanged;
			this.numericUpDown4.ValueChanged += this.numericUpDown4ValueChanged;
			this.numericUpDown5.ValueChanged += this.numericUpDown5ValueChanged;
			this.numericUpDown6.ValueChanged += this.numericUpDown6ValueChanged;
			this.trackBar4.ValueChanged += this.trackBar4_ValueChanged;
			this.trackBar5.ValueChanged += this.trackBar5_ValueChanged;
			this.trackBar6.ValueChanged += this.trackBar6_ValueChanged;
			this.SetUIColor();
		}
		private void trackBar4_ValueChanged(object sender, EventArgs e) {
			this.numericUpDown4.ValueChanged -= this.numericUpDown4ValueChanged;
			this.numericUpDown1.ValueChanged -= this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged -= this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged -= this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged -= this.trackBar1_ValueChanged;
			this.trackBar2.ValueChanged -= this.trackBar2_ValueChanged;
			this.trackBar3.ValueChanged -= this.trackBar3_ValueChanged;
			this.numericUpDown4.Value = this.trackBar4.Value;
			this._hsv.FromRgb((int) this.trackBar4.Value, (int) this.trackBar5.Value, (int) this.trackBar6.Value);
			this.numericUpDown1.Value = (decimal) this._hsv.H;
			this.numericUpDown2.Value = (decimal) (this._hsv.S * 100);
			this.numericUpDown3.Value = (decimal) (this._hsv.V * 100);
			this.trackBar1.Value = (int) this._hsv.H;
			this.trackBar2.Value = (int) (this._hsv.S * 100);
			this.trackBar3.Value = (int) (this._hsv.V * 100);
			this.numericUpDown4.ValueChanged += this.numericUpDown4ValueChanged;
			this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged += this.trackBar1_ValueChanged;
			this.trackBar2.ValueChanged += this.trackBar2_ValueChanged;
			this.trackBar3.ValueChanged += this.trackBar3_ValueChanged;
			this.SetUIColor();
		}
		private void trackBar5_ValueChanged(object sender, EventArgs e) {
			this.numericUpDown5.ValueChanged -= this.numericUpDown5ValueChanged;
			this.numericUpDown1.ValueChanged -= this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged -= this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged -= this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged -= this.trackBar1_ValueChanged;
			this.trackBar2.ValueChanged -= this.trackBar2_ValueChanged;
			this.trackBar3.ValueChanged -= this.trackBar3_ValueChanged;
			this.numericUpDown5.Value = this.trackBar5.Value;
			this._hsv.FromRgb((int) this.trackBar4.Value, (int) this.trackBar5.Value, (int) this.trackBar6.Value);
			this.numericUpDown1.Value = (decimal) this._hsv.H;
			this.numericUpDown2.Value = (decimal) (this._hsv.S * 100);
			this.numericUpDown3.Value = (decimal) (this._hsv.V * 100);
			this.trackBar1.Value = (int) this._hsv.H;
			this.trackBar2.Value = (int) (this._hsv.S * 100);
			this.trackBar3.Value = (int) (this._hsv.V * 100);
			this.numericUpDown5.ValueChanged += this.numericUpDown5ValueChanged;
			this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged += this.trackBar1_ValueChanged;
			this.trackBar2.ValueChanged += this.trackBar2_ValueChanged;
			this.trackBar3.ValueChanged += this.trackBar3_ValueChanged;
			this.SetUIColor();
		}
		private void trackBar6_ValueChanged(object sender, EventArgs e) {
			this.numericUpDown6.ValueChanged -= this.numericUpDown6ValueChanged;
			this.numericUpDown1.ValueChanged -= this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged -= this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged -= this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged -= this.trackBar1_ValueChanged;
			this.trackBar2.ValueChanged -= this.trackBar2_ValueChanged;
			this.trackBar3.ValueChanged -= this.trackBar3_ValueChanged;
			this.numericUpDown6.Value = this.trackBar6.Value;
			this._hsv.FromRgb((int) this.trackBar4.Value, (int) this.trackBar5.Value, (int) this.trackBar6.Value);
			this.numericUpDown1.Value = (decimal) this._hsv.H;
			this.numericUpDown2.Value = (decimal) (this._hsv.S * 100);
			this.numericUpDown3.Value = (decimal) (this._hsv.V * 100);
			this.trackBar1.Value = (int) this._hsv.H;
			this.trackBar2.Value = (int) (this._hsv.S * 100);
			this.trackBar3.Value = (int) (this._hsv.V * 100);
			this.numericUpDown6.ValueChanged += this.numericUpDown6ValueChanged;
			this.numericUpDown1.ValueChanged += this.numericUpDown1ValueChanged;
			this.numericUpDown2.ValueChanged += this.numericUpDown2ValueChanged;
			this.numericUpDown3.ValueChanged += this.numericUpDown3ValueChanged;
			this.trackBar1.ValueChanged += this.trackBar1_ValueChanged;
			this.trackBar2.ValueChanged += this.trackBar2_ValueChanged;
			this.trackBar3.ValueChanged += this.trackBar3_ValueChanged;
			this.SetUIColor();
		}
		private void SetUIColor() {
			this.selectedColor = Color.FromArgb((int) this.numericUpDown4.Value, (int) this.numericUpDown5.Value, (int) this.numericUpDown6.Value);
			this.BackColor = this.selectedColor;
			this.Update();
			this.panel1.BackColor = this.selectedColor;
			this.panel1.Update();
			this.panel2.BackColor = this.selectedColor;
			this.panel2.Update();
			this.panel3.BackColor = this.selectedColor;
			this.panel3.Update();
			this.numericUpDown1.BackColor = this.selectedColor;
			this.numericUpDown2.BackColor = this.selectedColor;
			this.numericUpDown3.BackColor = this.selectedColor;
			this.numericUpDown4.BackColor = this.selectedColor;
			this.numericUpDown5.BackColor = this.selectedColor;
			this.numericUpDown6.BackColor = this.selectedColor;
			Color foreColor = Color.FromArgb(this.selectedColor.R ^ 0xff,this.selectedColor.G ^ 0xff,this.selectedColor.B ^ 0xff);
			if ((80 < this.selectedColor.R && this.selectedColor.R < 180) && (80 < this.selectedColor.G && this.selectedColor.G < 180))
			{
				foreColor = Color.Black;
			}
			this.label1.ForeColor = foreColor;
			this.label2.ForeColor = foreColor;
			this.label3.ForeColor = foreColor;
			this.label4.ForeColor = foreColor;
			this.label5.ForeColor = foreColor;
			this.label6.ForeColor = foreColor;
			this.numericUpDown1.ForeColor = foreColor;
			this.numericUpDown2.ForeColor = foreColor;
			this.numericUpDown3.ForeColor = foreColor;
			this.numericUpDown4.ForeColor = foreColor;
			this.numericUpDown5.ForeColor = foreColor;
			this.numericUpDown6.ForeColor = foreColor;
			this.numericUpDown1.Refresh();
			this.numericUpDown2.Refresh();
			this.numericUpDown3.Refresh();
			this.numericUpDown4.Refresh();
			this.numericUpDown5.Refresh();
			this.numericUpDown6.Refresh();
		}
		private System.ComponentModel.IContainer components = null;
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent() {
			this.panel1 = new System.Windows.Forms.Panel();
			this.trackBar3 = new System.Windows.Forms.TrackBar();
			this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
			this.trackBar2 = new System.Windows.Forms.TrackBar();
			this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
			this.trackBar1 = new System.Windows.Forms.TrackBar();
			this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
			this.label3 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.panel2 = new System.Windows.Forms.Panel();
			this.trackBar6 = new System.Windows.Forms.TrackBar();
			this.numericUpDown6 = new System.Windows.Forms.NumericUpDown();
			this.trackBar5 = new System.Windows.Forms.TrackBar();
			this.numericUpDown5 = new System.Windows.Forms.NumericUpDown();
			this.trackBar4 = new System.Windows.Forms.TrackBar();
			this.numericUpDown4 = new System.Windows.Forms.NumericUpDown();
			this.label6 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.panel3 = new System.Windows.Forms.Panel();
			this.panel1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize) (this.trackBar3)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown3)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.trackBar2)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown2)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.trackBar1)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown1)).BeginInit();
			this.panel2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize) (this.trackBar6)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown6)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.trackBar5)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown5)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.trackBar4)).BeginInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown4)).BeginInit();
			this.panel3.SuspendLayout();
			this.SuspendLayout();
			this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles) ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
			this.panel1.Controls.Add(this.trackBar3);
			this.panel1.Controls.Add(this.numericUpDown3);
			this.panel1.Controls.Add(this.trackBar2);
			this.panel1.Controls.Add(this.numericUpDown2);
			this.panel1.Controls.Add(this.trackBar1);
			this.panel1.Controls.Add(this.numericUpDown1);
			this.panel1.Controls.Add(this.label3);
			this.panel1.Controls.Add(this.label2);
			this.panel1.Controls.Add(this.label1);
			this.panel1.Location = new System.Drawing.Point(0, 0);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(291, 66);
			this.panel1.TabIndex = 0;
			this.trackBar3.Anchor = ((System.Windows.Forms.AnchorStyles) ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
			this.trackBar3.AutoSize = false;
			this.trackBar3.Location = new System.Drawing.Point(70, 44);
			this.trackBar3.Maximum = 100;
			this.trackBar3.Name = "trackBar3";
			this.trackBar3.Size = new System.Drawing.Size(218, 19);
			this.trackBar3.TabIndex = 8;
			this.trackBar3.TabStop = false;
			this.trackBar3.TickStyle = System.Windows.Forms.TickStyle.None;
			this.numericUpDown3.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.numericUpDown3.DecimalPlaces = 1;
			this.numericUpDown3.Increment = new decimal(new int[] {
				1,
				0,
				0,
				65536
			});
			this.numericUpDown3.Location = new System.Drawing.Point(18, 46);
			this.numericUpDown3.Name = "numericUpDown3";
			this.numericUpDown3.Size = new System.Drawing.Size(46, 15);
			this.numericUpDown3.TabIndex = 7;
			this.numericUpDown3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.trackBar2.Anchor = ((System.Windows.Forms.AnchorStyles) ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
			this.trackBar2.AutoSize = false;
			this.trackBar2.Location = new System.Drawing.Point(70, 23);
			this.trackBar2.Maximum = 100;
			this.trackBar2.Name = "trackBar2";
			this.trackBar2.Size = new System.Drawing.Size(218, 19);
			this.trackBar2.TabIndex = 6;
			this.trackBar2.TabStop = false;
			this.trackBar2.TickStyle = System.Windows.Forms.TickStyle.None;
			this.numericUpDown2.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.numericUpDown2.DecimalPlaces = 1;
			this.numericUpDown2.Increment = new decimal(new int[] {
				1,
				0,
				0,
				65536
			});
			this.numericUpDown2.Location = new System.Drawing.Point(18, 25);
			this.numericUpDown2.Name = "numericUpDown2";
			this.numericUpDown2.Size = new System.Drawing.Size(46, 15);
			this.numericUpDown2.TabIndex = 5;
			this.numericUpDown2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.trackBar1.Anchor = ((System.Windows.Forms.AnchorStyles) ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
			this.trackBar1.AutoSize = false;
			this.trackBar1.Location = new System.Drawing.Point(70, 2);
			this.trackBar1.Maximum = 360;
			this.trackBar1.Name = "trackBar1";
			this.trackBar1.Size = new System.Drawing.Size(218, 19);
			this.trackBar1.TabIndex = 4;
			this.trackBar1.TabStop = false;
			this.trackBar1.TickStyle = System.Windows.Forms.TickStyle.None;
			this.numericUpDown1.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.numericUpDown1.DecimalPlaces = 1;
			this.numericUpDown1.Increment = new decimal(new int[] {
				1,
				0,
				0,
				65536
			});
			this.numericUpDown1.Location = new System.Drawing.Point(18, 4);
			this.numericUpDown1.Maximum = new decimal(new int[] {
				360,
				0,
				0,
				0
			});
			this.numericUpDown1.Name = "numericUpDown1";
			this.numericUpDown1.Size = new System.Drawing.Size(46, 15);
			this.numericUpDown1.TabIndex = 3;
			this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(2, 46);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(13, 12);
			this.label3.TabIndex = 2;
			this.label3.Text = "V";
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(3, 25);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(12, 12);
			this.label2.TabIndex = 1;
			this.label2.Text = "S";
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(2, 4);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(13, 12);
			this.label1.TabIndex = 0;
			this.label1.Text = "H";
			this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles) ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
			this.panel2.Controls.Add(this.trackBar6);
			this.panel2.Controls.Add(this.numericUpDown6);
			this.panel2.Controls.Add(this.trackBar5);
			this.panel2.Controls.Add(this.numericUpDown5);
			this.panel2.Controls.Add(this.trackBar4);
			this.panel2.Controls.Add(this.numericUpDown4);
			this.panel2.Controls.Add(this.label6);
			this.panel2.Controls.Add(this.label5);
			this.panel2.Controls.Add(this.label4);
			this.panel2.Location = new System.Drawing.Point(0, 67);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(291, 67);
			this.panel2.TabIndex = 1;
			this.trackBar6.Anchor = ((System.Windows.Forms.AnchorStyles) ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
			this.trackBar6.AutoSize = false;
			this.trackBar6.Location = new System.Drawing.Point(70, 45);
			this.trackBar6.Maximum = 255;
			this.trackBar6.Name = "trackBar6";
			this.trackBar6.Size = new System.Drawing.Size(218, 19);
			this.trackBar6.TabIndex = 8;
			this.trackBar6.TabStop = false;
			this.trackBar6.TickStyle = System.Windows.Forms.TickStyle.None;
			this.numericUpDown6.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.numericUpDown6.Location = new System.Drawing.Point(18, 47);
			this.numericUpDown6.Maximum = new decimal(new int[] {
				255,
				0,
				0,
				0
			});
			this.numericUpDown6.Name = "numericUpDown6";
			this.numericUpDown6.Size = new System.Drawing.Size(46, 15);
			this.numericUpDown6.TabIndex = 7;
			this.numericUpDown6.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.trackBar5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
			| System.Windows.Forms.AnchorStyles.Left)
			| System.Windows.Forms.AnchorStyles.Right)));
			this.trackBar5.AutoSize = false;
			this.trackBar5.Location = new System.Drawing.Point(70, 24);
			this.trackBar5.Maximum = 255;
			this.trackBar5.Name = "trackBar5";
			this.trackBar5.Size = new System.Drawing.Size(218, 19);
			this.trackBar5.TabIndex = 6;
			this.trackBar5.TabStop = false;
			this.trackBar5.TickStyle = System.Windows.Forms.TickStyle.None;
			this.numericUpDown5.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.numericUpDown5.Location = new System.Drawing.Point(19, 26);
			this.numericUpDown5.Maximum = new decimal(new int[] {
				255,
				0,
				0,
				0
			});
			this.numericUpDown5.Name = "numericUpDown5";
			this.numericUpDown5.Size = new System.Drawing.Size(45, 15);
			this.numericUpDown5.TabIndex = 5;
			this.numericUpDown5.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.trackBar4.Anchor = ((System.Windows.Forms.AnchorStyles) ((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
			this.trackBar4.AutoSize = false;
			this.trackBar4.Location = new System.Drawing.Point(70, 3);
			this.trackBar4.Maximum = 255;
			this.trackBar4.Name = "trackBar4";
			this.trackBar4.Size = new System.Drawing.Size(218, 19);
			this.trackBar4.TabIndex = 4;
			this.trackBar4.TabStop = false;
			this.trackBar4.TickStyle = System.Windows.Forms.TickStyle.None;
			this.numericUpDown4.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.numericUpDown4.Location = new System.Drawing.Point(19, 5);
			this.numericUpDown4.Maximum = new decimal(new int[] {
				255,
				0,
				0,
				0
			});
			this.numericUpDown4.Name = "numericUpDown4";
			this.numericUpDown4.Size = new System.Drawing.Size(45, 15);
			this.numericUpDown4.TabIndex = 3;
			this.numericUpDown4.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.label6.AutoSize = true;
			this.label6.Location = new System.Drawing.Point(2, 47);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(13, 12);
			this.label6.TabIndex = 2;
			this.label6.Text = "B";
			this.label5.AutoSize = true;
			this.label5.Location = new System.Drawing.Point(2, 26);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(13, 12);
			this.label5.TabIndex = 1;
			this.label5.Text = "G";
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(2, 5);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(13, 12);
			this.label4.TabIndex = 0;
			this.label4.Text = "R";
			this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));
			this.panel3.Controls.Add(this.panel1);
			this.panel3.Controls.Add(this.panel2);
			this.panel3.Location = new System.Drawing.Point(0, 139);
			this.panel3.Name = "panel3";
			this.panel3.Size = new System.Drawing.Size(292, 135);
			this.panel3.TabIndex = 2;
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(292, 273);
			this.Controls.Add(this.panel3);
			this.Name = "ColorEditorForm";
			this.Text = "ColorEditor";
			this.panel1.ResumeLayout(false);
			this.panel1.PerformLayout();
			((System.ComponentModel.ISupportInitialize) (this.trackBar3)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown3)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.trackBar2)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown2)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.trackBar1)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown1)).EndInit();
			this.panel2.ResumeLayout(false);
			this.panel2.PerformLayout();
			((System.ComponentModel.ISupportInitialize) (this.trackBar6)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown6)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.trackBar5)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown5)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.trackBar4)).EndInit();
			((System.ComponentModel.ISupportInitialize) (this.numericUpDown4)).EndInit();
			this.panel3.ResumeLayout(false);
			this.ResumeLayout(false);
		}
		[STAThread]
		static void Main() {
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new ColorEditorForm());
		}
	}
}




```

以上。