public Int32ColorWheelPropertyControl(PropertyControlInfo propInfo)
            : base(propInfo)
        {
            if (Property.MinValue != requiredMin || Property.MaxValue != requiredMax)
            {
                throw new ArgumentException("The only range allowed for this control is [" + requiredMin + ", " + requiredMax + "]");
            }

            SuspendLayout();

            this.header             = new HeaderLabel();
            this.header.Name        = "header";
            this.header.RightMargin = 0;
            this.header.Text        = this.DisplayName;

            this.colorRectangle          = new ColorRectangleControl();
            this.colorRectangle.Name     = "colorRectangle";
            this.colorRectangle.TabStop  = false;
            this.colorRectangle.TabIndex = 0;

            this.hsvColorWheel               = new ColorWheel();
            this.hsvColorWheel.Name          = "hsvColorWheel";
            this.hsvColorWheel.ColorChanged += new EventHandler(HsvColorWheel_ColorChanged);
            this.hsvColorWheel.TabStop       = false;
            this.hsvColorWheel.TabIndex      = 1;

            this.saturationSlider               = new ColorGradientControl();
            this.saturationSlider.Name          = "saturationSlider";
            this.saturationSlider.Orientation   = Orientation.Vertical;
            this.saturationSlider.ValueChanged += new IndexEventHandler(SaturationSlider_ValueChanged);
            this.saturationSlider.TabStop       = false;
            this.saturationSlider.TabIndex      = 2;

            this.valueSlider               = new ColorGradientControl();
            this.valueSlider.Name          = "valueSlider";
            this.valueSlider.Orientation   = Orientation.Vertical;
            this.valueSlider.ValueChanged += new IndexEventHandler(ValueSlider_ValueChanged);
            this.valueSlider.TabStop       = false;
            this.valueSlider.TabIndex      = 3;

            this.redLabel          = new Label();
            this.redLabel.Name     = "redLabel";
            this.redLabel.AutoSize = true;
            this.redLabel.Text     = PdnResources.GetString("ColorsForm.RedLabel.Text");

            this.redNud               = new PdnNumericUpDown();
            this.redNud.Name          = "redNud";
            this.redNud.Minimum       = 0;
            this.redNud.Maximum       = 255;
            this.redNud.TextAlign     = HorizontalAlignment.Right;
            this.redNud.ValueChanged += new EventHandler(RedNud_ValueChanged);
            this.redNud.TabIndex      = 4;

            this.greenLabel          = new Label();
            this.greenLabel.Name     = "greenLabel";
            this.greenLabel.AutoSize = true;
            this.greenLabel.Text     = PdnResources.GetString("ColorsForm.GreenLabel.Text");

            this.greenNud               = new PdnNumericUpDown();
            this.greenNud.Name          = "greenNud";
            this.greenNud.Minimum       = 0;
            this.greenNud.Maximum       = 255;
            this.greenNud.TextAlign     = HorizontalAlignment.Right;
            this.greenNud.ValueChanged += new EventHandler(GreenNud_ValueChanged);
            this.greenNud.TabIndex      = 5;

            this.blueLabel          = new Label();
            this.blueLabel.Name     = "blueLabel";
            this.blueLabel.AutoSize = true;
            this.blueLabel.Text     = PdnResources.GetString("ColorsForm.BlueLabel.Text");

            this.blueNud               = new PdnNumericUpDown();
            this.blueNud.Name          = "blueNud";
            this.blueNud.Minimum       = 0;
            this.blueNud.Maximum       = 255;
            this.blueNud.TextAlign     = HorizontalAlignment.Right;
            this.blueNud.ValueChanged += new EventHandler(BlueNud_ValueChanged);
            this.blueNud.TabIndex      = 6;

            this.resetButton           = new Button();
            this.resetButton.AutoSize  = true;
            this.resetButton.Name      = "resetButton";
            this.resetButton.FlatStyle = FlatStyle.Standard;
            this.resetButton.Click    += new EventHandler(ResetButton_Click);
            this.resetButton.Image     = PdnResources.GetImage("Icons.ResetIcon.png");
            this.resetButton.Width     = 1;
            this.resetButton.Visible   = (bool)propInfo.ControlProperties[ControlInfoPropertyNames.ShowResetButton].Value;
            this.ToolTip.SetToolTip(this.resetButton, PdnResources.GetString("Form.ResetButton.Text").Replace("&", ""));
            this.resetButton.TabIndex = 7;

            this.description      = new Label();
            this.description.Name = "description";
            this.description.Text = this.Description;

            this.Controls.AddRange(
                new Control[]
            {
                this.header,
                this.hsvColorWheel,
                this.saturationSlider,
                this.valueSlider,
                this.colorRectangle,
                this.redLabel,
                this.redNud,
                this.greenLabel,
                this.greenNud,
                this.blueLabel,
                this.blueNud,
                this.resetButton,
                this.description
            });

            ResumeLayout(false);
        }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     PaintDotNet.HistogramRgb histogramRgb1 = new PaintDotNet.HistogramRgb();
     PaintDotNet.HistogramRgb histogramRgb2 = new PaintDotNet.HistogramRgb();
     this.redMaskCheckBox       = new System.Windows.Forms.CheckBox();
     this.greenMaskCheckBox     = new System.Windows.Forms.CheckBox();
     this.blueMaskCheckBox      = new System.Windows.Forms.CheckBox();
     this.okButton              = new System.Windows.Forms.Button();
     this.cancelButton          = new System.Windows.Forms.Button();
     this.autoButton            = new System.Windows.Forms.Button();
     this.resetButton           = new System.Windows.Forms.Button();
     this.tooltipProvider       = new System.Windows.Forms.ToolTip(this.components);
     this.tableMain             = new System.Windows.Forms.TableLayoutPanel();
     this.headerHistogramOutput = new PaintDotNet.HeaderLabel();
     this.headerControlsOutput  = new PaintDotNet.HeaderLabel();
     this.headerControlsInput   = new PaintDotNet.HeaderLabel();
     this.headerHistogramInput  = new PaintDotNet.HeaderLabel();
     this.swatchInLow           = new System.Windows.Forms.Panel();
     this.inputHiUpDown         = new System.Windows.Forms.NumericUpDown();
     this.swatchInHigh          = new System.Windows.Forms.Panel();
     this.inputLoUpDown         = new System.Windows.Forms.NumericUpDown();
     this.swatchOutLow          = new System.Windows.Forms.Panel();
     this.outputGammaUpDown     = new System.Windows.Forms.NumericUpDown();
     this.swatchOutHigh         = new System.Windows.Forms.Panel();
     this.outputHiUpDown        = new System.Windows.Forms.NumericUpDown();
     this.gradientInput         = new PaintDotNet.ColorGradientControl();
     this.swatchOutMid          = new System.Windows.Forms.Panel();
     this.gradientOutput        = new PaintDotNet.ColorGradientControl();
     this.tableLayoutPanel2     = new System.Windows.Forms.TableLayoutPanel();
     this.histogramInput        = new PaintDotNet.HistogramControl();
     this.histogramOutput       = new PaintDotNet.HistogramControl();
     this.outputLowUpDown       = new System.Windows.Forms.NumericUpDown();
     this.tableMain.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.inputHiUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.inputLoUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.outputGammaUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.outputHiUpDown)).BeginInit();
     this.tableLayoutPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.outputLowUpDown)).BeginInit();
     this.SuspendLayout();
     //
     // redMaskCheckBox
     //
     this.redMaskCheckBox.Checked         = true;
     this.redMaskCheckBox.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.redMaskCheckBox.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.redMaskCheckBox.Location        = new System.Drawing.Point(165, 3);
     this.redMaskCheckBox.Name            = "redMaskCheckBox";
     this.redMaskCheckBox.Size            = new System.Drawing.Size(34, 23);
     this.redMaskCheckBox.TabIndex        = 8;
     this.redMaskCheckBox.Click          += new System.EventHandler(this.redMaskCheckBox_CheckedChanged);
     this.redMaskCheckBox.CheckedChanged += new System.EventHandler(this.redMaskCheckBox_CheckedChanged);
     //
     // greenMaskCheckBox
     //
     this.greenMaskCheckBox.Checked         = true;
     this.greenMaskCheckBox.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.greenMaskCheckBox.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.greenMaskCheckBox.Location        = new System.Drawing.Point(205, 3);
     this.greenMaskCheckBox.Name            = "greenMaskCheckBox";
     this.greenMaskCheckBox.Size            = new System.Drawing.Size(34, 23);
     this.greenMaskCheckBox.TabIndex        = 9;
     this.greenMaskCheckBox.Click          += new System.EventHandler(this.greenMaskCheckBox_CheckedChanged);
     this.greenMaskCheckBox.CheckedChanged += new System.EventHandler(this.greenMaskCheckBox_CheckedChanged);
     //
     // blueMaskCheckBox
     //
     this.blueMaskCheckBox.Checked         = true;
     this.blueMaskCheckBox.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.blueMaskCheckBox.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.blueMaskCheckBox.Location        = new System.Drawing.Point(245, 3);
     this.blueMaskCheckBox.Name            = "blueMaskCheckBox";
     this.blueMaskCheckBox.Size            = new System.Drawing.Size(34, 23);
     this.blueMaskCheckBox.TabIndex        = 10;
     this.blueMaskCheckBox.Click          += new System.EventHandler(this.blueMaskCheckBox_CheckedChanged);
     this.blueMaskCheckBox.CheckedChanged += new System.EventHandler(this.blueMaskCheckBox_CheckedChanged);
     //
     // okButton
     //
     this.okButton.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.okButton.Location  = new System.Drawing.Point(285, 3);
     this.okButton.Name      = "okButton";
     this.okButton.Size      = new System.Drawing.Size(75, 23);
     this.okButton.TabIndex  = 11;
     this.okButton.Click    += new System.EventHandler(this.okButton_Click);
     //
     // cancelButton
     //
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.cancelButton.FlatStyle    = System.Windows.Forms.FlatStyle.System;
     this.cancelButton.Location     = new System.Drawing.Point(366, 3);
     this.cancelButton.Name         = "cancelButton";
     this.cancelButton.Size         = new System.Drawing.Size(77, 23);
     this.cancelButton.TabIndex     = 12;
     this.cancelButton.Click       += new System.EventHandler(this.cancelButton_Click);
     //
     // autoButton
     //
     this.autoButton.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.autoButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.autoButton.Location  = new System.Drawing.Point(3, 3);
     this.autoButton.Name      = "autoButton";
     this.autoButton.Size      = new System.Drawing.Size(75, 23);
     this.autoButton.TabIndex  = 6;
     this.autoButton.Click    += new System.EventHandler(this.autoButton_Click);
     //
     // resetButton
     //
     this.resetButton.Dock      = System.Windows.Forms.DockStyle.Fill;
     this.resetButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.resetButton.Location  = new System.Drawing.Point(84, 3);
     this.resetButton.Name      = "resetButton";
     this.resetButton.Size      = new System.Drawing.Size(75, 23);
     this.resetButton.TabIndex  = 7;
     this.resetButton.Click    += new System.EventHandler(this.resetButton_Click);
     //
     // tableMain
     //
     this.tableMain.ColumnCount = 6;
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableMain.Controls.Add(this.headerHistogramOutput, 5, 0);
     this.tableMain.Controls.Add(this.headerControlsOutput, 3, 0);
     this.tableMain.Controls.Add(this.headerControlsInput, 1, 0);
     this.tableMain.Controls.Add(this.headerHistogramInput, 0, 0);
     this.tableMain.Controls.Add(this.swatchInLow, 1, 7);
     this.tableMain.Controls.Add(this.inputHiUpDown, 1, 1);
     this.tableMain.Controls.Add(this.swatchInHigh, 1, 2);
     this.tableMain.Controls.Add(this.inputLoUpDown, 1, 8);
     this.tableMain.Controls.Add(this.swatchOutLow, 4, 7);
     this.tableMain.Controls.Add(this.outputGammaUpDown, 4, 4);
     this.tableMain.Controls.Add(this.swatchOutHigh, 4, 2);
     this.tableMain.Controls.Add(this.outputHiUpDown, 4, 1);
     this.tableMain.Controls.Add(this.gradientInput, 2, 1);
     this.tableMain.Controls.Add(this.swatchOutMid, 4, 5);
     this.tableMain.Controls.Add(this.gradientOutput, 3, 1);
     this.tableMain.Controls.Add(this.tableLayoutPanel2, 0, 9);
     this.tableMain.Controls.Add(this.histogramInput, 0, 1);
     this.tableMain.Controls.Add(this.histogramOutput, 5, 1);
     this.tableMain.Controls.Add(this.outputLowUpDown, 4, 8);
     this.tableMain.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableMain.Location = new System.Drawing.Point(0, 0);
     this.tableMain.Name     = "tableMain";
     this.tableMain.RowCount = 10;
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableMain.Size    = new System.Drawing.Size(452, 211);
     this.tableMain.TabStop = false;
     //
     // headerHistogramOutput
     //
     this.headerHistogramOutput.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.headerHistogramOutput.Location    = new System.Drawing.Point(319, 3);
     this.headerHistogramOutput.Name        = "headerHistogramOutput";
     this.headerHistogramOutput.RightMargin = 3;
     this.headerHistogramOutput.Size        = new System.Drawing.Size(130, 14);
     this.headerHistogramOutput.TabStop     = false;
     //
     // headerControlsOutput
     //
     this.tableMain.SetColumnSpan(this.headerControlsOutput, 2);
     this.headerControlsOutput.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.headerControlsOutput.Location    = new System.Drawing.Point(229, 3);
     this.headerControlsOutput.Name        = "headerControlsOutput";
     this.headerControlsOutput.RightMargin = 3;
     this.headerControlsOutput.Size        = new System.Drawing.Size(84, 14);
     this.headerControlsOutput.TabStop     = false;
     //
     // headerControlsInput
     //
     this.tableMain.SetColumnSpan(this.headerControlsInput, 2);
     this.headerControlsInput.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.headerControlsInput.Location    = new System.Drawing.Point(139, 3);
     this.headerControlsInput.Name        = "headerControlsInput";
     this.headerControlsInput.RightMargin = 3;
     this.headerControlsInput.Size        = new System.Drawing.Size(84, 14);
     this.headerControlsInput.TabStop     = false;
     //
     // headerHistogramInput
     //
     this.headerHistogramInput.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.headerHistogramInput.Location    = new System.Drawing.Point(3, 3);
     this.headerHistogramInput.Name        = "headerHistogramInput";
     this.headerHistogramInput.RightMargin = 3;
     this.headerHistogramInput.Size        = new System.Drawing.Size(130, 14);
     this.headerHistogramInput.TabStop     = false;
     //
     // swatchInLow
     //
     this.swatchInLow.BackColor   = System.Drawing.Color.Black;
     this.swatchInLow.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchInLow.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.swatchInLow.Location    = new System.Drawing.Point(139, 127);
     this.swatchInLow.Name        = "swatchInLow";
     this.swatchInLow.Size        = new System.Drawing.Size(44, 20);
     this.swatchInLow.TabStop     = false;
     //
     // inputHiUpDown
     //
     this.inputHiUpDown.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.inputHiUpDown.Location = new System.Drawing.Point(139, 23);
     this.inputHiUpDown.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.inputHiUpDown.Name  = "inputHiUpDown";
     this.inputHiUpDown.Size  = new System.Drawing.Size(44, 20);
     this.inputHiUpDown.Value = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.inputHiUpDown.ValueChanged += new System.EventHandler(this.txtInputHi_ValueChanged);
     this.inputHiUpDown.Validating   += new System.ComponentModel.CancelEventHandler(this.txtInputHi_Validating);
     this.inputHiUpDown.TabIndex      = 1;
     //
     // swatchInHigh
     //
     this.swatchInHigh.BackColor   = System.Drawing.Color.White;
     this.swatchInHigh.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchInHigh.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.swatchInHigh.Location    = new System.Drawing.Point(139, 49);
     this.swatchInHigh.Name        = "swatchInHigh";
     this.swatchInHigh.Size        = new System.Drawing.Size(44, 20);
     this.swatchInHigh.TabStop     = false;
     //
     // inputLoUpDown
     //
     this.inputLoUpDown.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.inputLoUpDown.Location = new System.Drawing.Point(139, 153);
     this.inputLoUpDown.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.inputLoUpDown.Name          = "inputLoUpDown";
     this.inputLoUpDown.Size          = new System.Drawing.Size(44, 20);
     this.inputLoUpDown.TabIndex      = 4;
     this.inputLoUpDown.ValueChanged += new System.EventHandler(this.txtInputLo_ValueChanged);
     this.inputLoUpDown.Validating   += new System.ComponentModel.CancelEventHandler(this.txtInputLo_Validating);
     //
     // swatchOutLow
     //
     this.swatchOutLow.BackColor   = System.Drawing.Color.Black;
     this.swatchOutLow.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchOutLow.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.swatchOutLow.Location    = new System.Drawing.Point(269, 127);
     this.swatchOutLow.Name        = "swatchOutLow";
     this.swatchOutLow.Size        = new System.Drawing.Size(44, 20);
     this.swatchOutLow.TabStop     = false;
     //
     // outputGammaUpDown
     //
     this.outputGammaUpDown.DecimalPlaces = 2;
     this.outputGammaUpDown.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.outputGammaUpDown.Increment     = new decimal(new int[] {
         1,
         0,
         0,
         65536
     });
     this.outputGammaUpDown.Location = new System.Drawing.Point(269, 75);
     this.outputGammaUpDown.Maximum  = new decimal(new int[] {
         100,
         0,
         0,
         65536
     });
     this.outputGammaUpDown.Minimum = new decimal(new int[] {
         1,
         0,
         0,
         65536
     });
     this.outputGammaUpDown.Name     = "outputGammaUpDown";
     this.outputGammaUpDown.Size     = new System.Drawing.Size(44, 20);
     this.outputGammaUpDown.TabIndex = 3;
     this.outputGammaUpDown.Value    = new decimal(new int[] {
         1,
         0,
         0,
         0
     });
     this.outputGammaUpDown.Validating += new System.ComponentModel.CancelEventHandler(this.outputGammaUpDown_Validating);
     //
     // swatchOutHigh
     //
     this.swatchOutHigh.BackColor   = System.Drawing.Color.White;
     this.swatchOutHigh.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchOutHigh.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.swatchOutHigh.Location    = new System.Drawing.Point(269, 49);
     this.swatchOutHigh.Name        = "swatchOutHigh";
     this.swatchOutHigh.Size        = new System.Drawing.Size(44, 20);
     this.swatchOutLow.TabStop      = false;
     //
     // outputHiUpDown
     //
     this.outputHiUpDown.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.outputHiUpDown.Location = new System.Drawing.Point(269, 23);
     this.outputHiUpDown.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.outputHiUpDown.Name     = "outputHiUpDown";
     this.outputHiUpDown.Size     = new System.Drawing.Size(44, 20);
     this.outputHiUpDown.TabIndex = 2;
     this.outputHiUpDown.Value    = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.outputHiUpDown.Validating += new System.ComponentModel.CancelEventHandler(this.outputHiUpDown_Validating);
     //
     // gradientInput
     //
     this.gradientInput.MinColor = System.Drawing.Color.Black;
     this.gradientInput.Count    = 2;
     this.gradientInput.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.gradientInput.Location = new System.Drawing.Point(189, 23);
     this.gradientInput.Name     = "gradientInput";
     this.tableMain.SetRowSpan(this.gradientInput, 8);
     this.gradientInput.Size          = new System.Drawing.Size(34, 150);
     this.gradientInput.MaxColor      = System.Drawing.Color.White;
     this.gradientInput.Value         = 0;
     this.gradientInput.ValueChanged += new PaintDotNet.IndexEventHandler(this.gradientInput_ValueChanged);
     this.swatchOutLow.TabStop        = false;
     //
     // swatchOutMid
     //
     this.swatchOutMid.BackColor   = System.Drawing.Color.White;
     this.swatchOutMid.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchOutMid.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.swatchOutMid.Location    = new System.Drawing.Point(269, 101);
     this.swatchOutMid.Name        = "swatchOutMid";
     this.swatchOutMid.Size        = new System.Drawing.Size(44, 20);
     this.swatchOutMid.TabStop     = false;
     //
     // gradientOutput
     //
     this.gradientOutput.MinColor = System.Drawing.Color.Black;
     this.gradientOutput.Count    = 3;
     this.gradientOutput.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.gradientOutput.Location = new System.Drawing.Point(229, 23);
     this.gradientOutput.Name     = "gradientOutput";
     this.tableMain.SetRowSpan(this.gradientOutput, 8);
     this.gradientOutput.Size          = new System.Drawing.Size(34, 150);
     this.gradientOutput.MaxColor      = System.Drawing.Color.White;
     this.gradientOutput.Value         = 0;
     this.gradientOutput.ValueChanged += new PaintDotNet.IndexEventHandler(this.gradientOutput_ValueChanged);
     this.gradientOutput.TabStop       = false;
     //
     // tableLayoutPanel2
     //
     this.tableLayoutPanel2.ColumnCount = 9;
     this.tableMain.SetColumnSpan(this.tableLayoutPanel2, 6);
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 83F));
     this.tableLayoutPanel2.Controls.Add(this.blueMaskCheckBox, 5, 0);
     this.tableLayoutPanel2.Controls.Add(this.greenMaskCheckBox, 4, 0);
     this.tableLayoutPanel2.Controls.Add(this.redMaskCheckBox, 3, 0);
     this.tableLayoutPanel2.Controls.Add(this.autoButton, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.resetButton, 1, 0);
     this.tableLayoutPanel2.Controls.Add(this.okButton, 7, 0);
     this.tableLayoutPanel2.Controls.Add(this.cancelButton, 8, 0);
     this.tableLayoutPanel2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 179);
     this.tableLayoutPanel2.Name     = "tableLayoutPanel2";
     this.tableLayoutPanel2.RowCount = 1;
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel2.Size = new System.Drawing.Size(446, 29);
     //
     // histogramInput
     //
     this.histogramInput.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.histogramInput.FlipHorizontal = true;
     this.histogramInput.FlipVertical   = false;
     this.histogramInput.Histogram      = histogramRgb1;
     this.histogramInput.Location       = new System.Drawing.Point(3, 23);
     this.histogramInput.Name           = "histogramInput";
     this.tableMain.SetRowSpan(this.histogramInput, 8);
     this.histogramInput.Size    = new System.Drawing.Size(130, 150);
     this.histogramInput.TabStop = false;
     //
     // histogramOutput
     //
     this.histogramOutput.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.histogramOutput.FlipHorizontal = false;
     this.histogramOutput.FlipVertical   = false;
     this.histogramOutput.Histogram      = histogramRgb2;
     this.histogramOutput.Location       = new System.Drawing.Point(319, 23);
     this.histogramOutput.Name           = "histogramOutput";
     this.tableMain.SetRowSpan(this.histogramOutput, 8);
     this.histogramOutput.Size    = new System.Drawing.Size(130, 150);
     this.histogramOutput.TabStop = false;
     //
     // outputLowUpDown
     //
     this.outputLowUpDown.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.outputLowUpDown.Location = new System.Drawing.Point(269, 153);
     this.outputLowUpDown.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     this.outputLowUpDown.Name          = "outputLowUpDown";
     this.outputLowUpDown.Size          = new System.Drawing.Size(44, 20);
     this.outputLowUpDown.TabIndex      = 5;
     this.outputLowUpDown.ValueChanged += new System.EventHandler(this.outputLowUpDown_ValueChanged);
     this.outputLowUpDown.Validating   += new System.ComponentModel.CancelEventHandler(this.outputLowUpDown_Validating);
     //
     // LevelsEffectConfigDialog
     //
     this.AcceptButton        = this.okButton;
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleDimensions = new SizeF(96F, 96F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     this.CancelButton        = this.cancelButton;
     this.ClientSize          = new System.Drawing.Size(452, 211);
     this.Controls.Add(this.tableMain);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
     this.MaximizeBox     = true;
     this.MinimumSize     = new System.Drawing.Size(460, 245);
     this.Name            = "LevelsEffectConfigDialog";
     this.Load           += new System.EventHandler(this.LevelsEffectConfigDialog_Load);
     this.Controls.SetChildIndex(this.tableMain, 0);
     this.tableMain.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.inputHiUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.inputLoUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.outputGammaUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.outputHiUpDown)).EndInit();
     this.tableLayoutPanel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.outputLowUpDown)).EndInit();
     this.ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     PaintDotNet.HistogramRgb histogramRgb1 = new PaintDotNet.HistogramRgb();
     PaintDotNet.HistogramRgb histogramRgb2 = new PaintDotNet.HistogramRgb();
     this.redMaskCheckBox = new System.Windows.Forms.CheckBox();
     this.greenMaskCheckBox = new System.Windows.Forms.CheckBox();
     this.blueMaskCheckBox = new System.Windows.Forms.CheckBox();
     this.okButton = new System.Windows.Forms.Button();
     this.cancelButton = new System.Windows.Forms.Button();
     this.autoButton = new System.Windows.Forms.Button();
     this.resetButton = new System.Windows.Forms.Button();
     this.tooltipProvider = new System.Windows.Forms.ToolTip(this.components);
     this.tableMain = new System.Windows.Forms.TableLayoutPanel();
     this.headerHistogramOutput = new PaintDotNet.HeaderLabel();
     this.headerControlsOutput = new PaintDotNet.HeaderLabel();
     this.headerControlsInput = new PaintDotNet.HeaderLabel();
     this.headerHistogramInput = new PaintDotNet.HeaderLabel();
     this.swatchInLow = new System.Windows.Forms.Panel();
     this.inputHiUpDown = new System.Windows.Forms.NumericUpDown();
     this.swatchInHigh = new System.Windows.Forms.Panel();
     this.inputLoUpDown = new System.Windows.Forms.NumericUpDown();
     this.swatchOutLow = new System.Windows.Forms.Panel();
     this.outputGammaUpDown = new System.Windows.Forms.NumericUpDown();
     this.swatchOutHigh = new System.Windows.Forms.Panel();
     this.outputHiUpDown = new System.Windows.Forms.NumericUpDown();
     this.gradientInput = new PaintDotNet.ColorGradientControl();
     this.swatchOutMid = new System.Windows.Forms.Panel();
     this.gradientOutput = new PaintDotNet.ColorGradientControl();
     this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
     this.histogramInput = new PaintDotNet.HistogramControl();
     this.histogramOutput = new PaintDotNet.HistogramControl();
     this.outputLowUpDown = new System.Windows.Forms.NumericUpDown();
     this.tableMain.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.inputHiUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.inputLoUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.outputGammaUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.outputHiUpDown)).BeginInit();
     this.tableLayoutPanel2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.outputLowUpDown)).BeginInit();
     this.SuspendLayout();
     //
     // redMaskCheckBox
     //
     this.redMaskCheckBox.Checked = true;
     this.redMaskCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
     this.redMaskCheckBox.Dock = System.Windows.Forms.DockStyle.Fill;
     this.redMaskCheckBox.Location = new System.Drawing.Point(165, 3);
     this.redMaskCheckBox.Name = "redMaskCheckBox";
     this.redMaskCheckBox.Size = new System.Drawing.Size(34, 23);
     this.redMaskCheckBox.TabIndex = 8;
     this.redMaskCheckBox.Click += new System.EventHandler(this.redMaskCheckBox_CheckedChanged);
     this.redMaskCheckBox.CheckedChanged += new System.EventHandler(this.redMaskCheckBox_CheckedChanged);
     //
     // greenMaskCheckBox
     //
     this.greenMaskCheckBox.Checked = true;
     this.greenMaskCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
     this.greenMaskCheckBox.Dock = System.Windows.Forms.DockStyle.Fill;
     this.greenMaskCheckBox.Location = new System.Drawing.Point(205, 3);
     this.greenMaskCheckBox.Name = "greenMaskCheckBox";
     this.greenMaskCheckBox.Size = new System.Drawing.Size(34, 23);
     this.greenMaskCheckBox.TabIndex = 9;
     this.greenMaskCheckBox.Click += new System.EventHandler(this.greenMaskCheckBox_CheckedChanged);
     this.greenMaskCheckBox.CheckedChanged += new System.EventHandler(this.greenMaskCheckBox_CheckedChanged);
     //
     // blueMaskCheckBox
     //
     this.blueMaskCheckBox.Checked = true;
     this.blueMaskCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
     this.blueMaskCheckBox.Dock = System.Windows.Forms.DockStyle.Fill;
     this.blueMaskCheckBox.Location = new System.Drawing.Point(245, 3);
     this.blueMaskCheckBox.Name = "blueMaskCheckBox";
     this.blueMaskCheckBox.Size = new System.Drawing.Size(34, 23);
     this.blueMaskCheckBox.TabIndex = 10;
     this.blueMaskCheckBox.Click += new System.EventHandler(this.blueMaskCheckBox_CheckedChanged);
     this.blueMaskCheckBox.CheckedChanged += new System.EventHandler(this.blueMaskCheckBox_CheckedChanged);
     //
     // okButton
     //
     this.okButton.Dock = System.Windows.Forms.DockStyle.Fill;
     this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.okButton.Location = new System.Drawing.Point(285, 3);
     this.okButton.Name = "okButton";
     this.okButton.Size = new System.Drawing.Size(75, 23);
     this.okButton.TabIndex = 11;
     this.okButton.Click += new System.EventHandler(this.okButton_Click);
     //
     // cancelButton
     //
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Dock = System.Windows.Forms.DockStyle.Fill;
     this.cancelButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.cancelButton.Location = new System.Drawing.Point(366, 3);
     this.cancelButton.Name = "cancelButton";
     this.cancelButton.Size = new System.Drawing.Size(77, 23);
     this.cancelButton.TabIndex = 12;
     this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
     //
     // autoButton
     //
     this.autoButton.Dock = System.Windows.Forms.DockStyle.Fill;
     this.autoButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.autoButton.Location = new System.Drawing.Point(3, 3);
     this.autoButton.Name = "autoButton";
     this.autoButton.Size = new System.Drawing.Size(75, 23);
     this.autoButton.TabIndex = 6;
     this.autoButton.Click += new System.EventHandler(this.autoButton_Click);
     //
     // resetButton
     //
     this.resetButton.Dock = System.Windows.Forms.DockStyle.Fill;
     this.resetButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.resetButton.Location = new System.Drawing.Point(84, 3);
     this.resetButton.Name = "resetButton";
     this.resetButton.Size = new System.Drawing.Size(75, 23);
     this.resetButton.TabIndex = 7;
     this.resetButton.Click += new System.EventHandler(this.resetButton_Click);
     //
     // tableMain
     //
     this.tableMain.ColumnCount = 6;
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 50F));
     this.tableMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableMain.Controls.Add(this.headerHistogramOutput, 5, 0);
     this.tableMain.Controls.Add(this.headerControlsOutput, 3, 0);
     this.tableMain.Controls.Add(this.headerControlsInput, 1, 0);
     this.tableMain.Controls.Add(this.headerHistogramInput, 0, 0);
     this.tableMain.Controls.Add(this.swatchInLow, 1, 7);
     this.tableMain.Controls.Add(this.inputHiUpDown, 1, 1);
     this.tableMain.Controls.Add(this.swatchInHigh, 1, 2);
     this.tableMain.Controls.Add(this.inputLoUpDown, 1, 8);
     this.tableMain.Controls.Add(this.swatchOutLow, 4, 7);
     this.tableMain.Controls.Add(this.outputGammaUpDown, 4, 4);
     this.tableMain.Controls.Add(this.swatchOutHigh, 4, 2);
     this.tableMain.Controls.Add(this.outputHiUpDown, 4, 1);
     this.tableMain.Controls.Add(this.gradientInput, 2, 1);
     this.tableMain.Controls.Add(this.swatchOutMid, 4, 5);
     this.tableMain.Controls.Add(this.gradientOutput, 3, 1);
     this.tableMain.Controls.Add(this.tableLayoutPanel2, 0, 9);
     this.tableMain.Controls.Add(this.histogramInput, 0, 1);
     this.tableMain.Controls.Add(this.histogramOutput, 5, 1);
     this.tableMain.Controls.Add(this.outputLowUpDown, 4, 8);
     this.tableMain.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tableMain.Location = new System.Drawing.Point(0, 0);
     this.tableMain.Name = "tableMain";
     this.tableMain.RowCount = 10;
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableMain.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
     this.tableMain.Size = new System.Drawing.Size(452, 211);
     this.tableMain.TabStop = false;
     //
     // headerHistogramOutput
     //
     this.headerHistogramOutput.Dock = System.Windows.Forms.DockStyle.Fill;
     this.headerHistogramOutput.Location = new System.Drawing.Point(319, 3);
     this.headerHistogramOutput.Name = "headerHistogramOutput";
     this.headerHistogramOutput.RightMargin = 3;
     this.headerHistogramOutput.Size = new System.Drawing.Size(130, 14);
     this.headerHistogramOutput.TabStop = false;
     //
     // headerControlsOutput
     //
     this.tableMain.SetColumnSpan(this.headerControlsOutput, 2);
     this.headerControlsOutput.Dock = System.Windows.Forms.DockStyle.Fill;
     this.headerControlsOutput.Location = new System.Drawing.Point(229, 3);
     this.headerControlsOutput.Name = "headerControlsOutput";
     this.headerControlsOutput.RightMargin = 3;
     this.headerControlsOutput.Size = new System.Drawing.Size(84, 14);
     this.headerControlsOutput.TabStop = false;
     //
     // headerControlsInput
     //
     this.tableMain.SetColumnSpan(this.headerControlsInput, 2);
     this.headerControlsInput.Dock = System.Windows.Forms.DockStyle.Fill;
     this.headerControlsInput.Location = new System.Drawing.Point(139, 3);
     this.headerControlsInput.Name = "headerControlsInput";
     this.headerControlsInput.RightMargin = 3;
     this.headerControlsInput.Size = new System.Drawing.Size(84, 14);
     this.headerControlsInput.TabStop = false;
     //
     // headerHistogramInput
     //
     this.headerHistogramInput.Dock = System.Windows.Forms.DockStyle.Fill;
     this.headerHistogramInput.Location = new System.Drawing.Point(3, 3);
     this.headerHistogramInput.Name = "headerHistogramInput";
     this.headerHistogramInput.RightMargin = 3;
     this.headerHistogramInput.Size = new System.Drawing.Size(130, 14);
     this.headerHistogramInput.TabStop = false;
     //
     // swatchInLow
     //
     this.swatchInLow.BackColor = System.Drawing.Color.Black;
     this.swatchInLow.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchInLow.Dock = System.Windows.Forms.DockStyle.Fill;
     this.swatchInLow.Location = new System.Drawing.Point(139, 127);
     this.swatchInLow.Name = "swatchInLow";
     this.swatchInLow.Size = new System.Drawing.Size(44, 20);
     this.swatchInLow.TabStop = false;
     //
     // inputHiUpDown
     //
     this.inputHiUpDown.Dock = System.Windows.Forms.DockStyle.Fill;
     this.inputHiUpDown.Location = new System.Drawing.Point(139, 23);
     this.inputHiUpDown.Maximum = new decimal(new int[] {
     255,
     0,
     0,
     0});
     this.inputHiUpDown.Name = "inputHiUpDown";
     this.inputHiUpDown.Size = new System.Drawing.Size(44, 20);
     this.inputHiUpDown.Value = new decimal(new int[] {
     1,
     0,
     0,
     0});
     this.inputHiUpDown.ValueChanged += new System.EventHandler(this.txtInputHi_ValueChanged);
     this.inputHiUpDown.Validating += new System.ComponentModel.CancelEventHandler(this.txtInputHi_Validating);
     this.inputHiUpDown.TabIndex = 1;
     //
     // swatchInHigh
     //
     this.swatchInHigh.BackColor = System.Drawing.Color.White;
     this.swatchInHigh.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchInHigh.Dock = System.Windows.Forms.DockStyle.Fill;
     this.swatchInHigh.Location = new System.Drawing.Point(139, 49);
     this.swatchInHigh.Name = "swatchInHigh";
     this.swatchInHigh.Size = new System.Drawing.Size(44, 20);
     this.swatchInHigh.TabStop = false;
     //
     // inputLoUpDown
     //
     this.inputLoUpDown.Dock = System.Windows.Forms.DockStyle.Fill;
     this.inputLoUpDown.Location = new System.Drawing.Point(139, 153);
     this.inputLoUpDown.Maximum = new decimal(new int[] {
     255,
     0,
     0,
     0});
     this.inputLoUpDown.Name = "inputLoUpDown";
     this.inputLoUpDown.Size = new System.Drawing.Size(44, 20);
     this.inputLoUpDown.TabIndex = 4;
     this.inputLoUpDown.ValueChanged += new System.EventHandler(this.txtInputLo_ValueChanged);
     this.inputLoUpDown.Validating += new System.ComponentModel.CancelEventHandler(this.txtInputLo_Validating);
     //
     // swatchOutLow
     //
     this.swatchOutLow.BackColor = System.Drawing.Color.Black;
     this.swatchOutLow.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchOutLow.Dock = System.Windows.Forms.DockStyle.Fill;
     this.swatchOutLow.Location = new System.Drawing.Point(269, 127);
     this.swatchOutLow.Name = "swatchOutLow";
     this.swatchOutLow.Size = new System.Drawing.Size(44, 20);
     this.swatchOutLow.TabStop = false;
     //
     // outputGammaUpDown
     //
     this.outputGammaUpDown.DecimalPlaces = 2;
     this.outputGammaUpDown.Dock = System.Windows.Forms.DockStyle.Fill;
     this.outputGammaUpDown.Increment = new decimal(new int[] {
     1,
     0,
     0,
     65536});
     this.outputGammaUpDown.Location = new System.Drawing.Point(269, 75);
     this.outputGammaUpDown.Maximum = new decimal(new int[] {
     100,
     0,
     0,
     65536});
     this.outputGammaUpDown.Minimum = new decimal(new int[] {
     1,
     0,
     0,
     65536});
     this.outputGammaUpDown.Name = "outputGammaUpDown";
     this.outputGammaUpDown.Size = new System.Drawing.Size(44, 20);
     this.outputGammaUpDown.TabIndex = 3;
     this.outputGammaUpDown.Value = new decimal(new int[] {
     1,
     0,
     0,
     0});
     this.outputGammaUpDown.Validating += new System.ComponentModel.CancelEventHandler(this.outputGammaUpDown_Validating);
     //
     // swatchOutHigh
     //
     this.swatchOutHigh.BackColor = System.Drawing.Color.White;
     this.swatchOutHigh.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchOutHigh.Dock = System.Windows.Forms.DockStyle.Fill;
     this.swatchOutHigh.Location = new System.Drawing.Point(269, 49);
     this.swatchOutHigh.Name = "swatchOutHigh";
     this.swatchOutHigh.Size = new System.Drawing.Size(44, 20);
     this.swatchOutLow.TabStop = false;
     //
     // outputHiUpDown
     //
     this.outputHiUpDown.Dock = System.Windows.Forms.DockStyle.Fill;
     this.outputHiUpDown.Location = new System.Drawing.Point(269, 23);
     this.outputHiUpDown.Maximum = new decimal(new int[] {
     255,
     0,
     0,
     0});
     this.outputHiUpDown.Name = "outputHiUpDown";
     this.outputHiUpDown.Size = new System.Drawing.Size(44, 20);
     this.outputHiUpDown.TabIndex = 2;
     this.outputHiUpDown.Value = new decimal(new int[] {
     255,
     0,
     0,
     0});
     this.outputHiUpDown.Validating += new System.ComponentModel.CancelEventHandler(this.outputHiUpDown_Validating);
     //
     // gradientInput
     //
     this.gradientInput.MinColor = System.Drawing.Color.Black;
     this.gradientInput.Count = 2;
     this.gradientInput.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gradientInput.Location = new System.Drawing.Point(189, 23);
     this.gradientInput.Name = "gradientInput";
     this.tableMain.SetRowSpan(this.gradientInput, 8);
     this.gradientInput.Size = new System.Drawing.Size(34, 150);
     this.gradientInput.MaxColor = System.Drawing.Color.White;
     this.gradientInput.Value = 0;
     this.gradientInput.ValueChanged += new PaintDotNet.IndexEventHandler(this.gradientInput_ValueChanged);
     this.swatchOutLow.TabStop = false;
     //
     // swatchOutMid
     //
     this.swatchOutMid.BackColor = System.Drawing.Color.White;
     this.swatchOutMid.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.swatchOutMid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.swatchOutMid.Location = new System.Drawing.Point(269, 101);
     this.swatchOutMid.Name = "swatchOutMid";
     this.swatchOutMid.Size = new System.Drawing.Size(44, 20);
     this.swatchOutMid.TabStop = false;
     //
     // gradientOutput
     //
     this.gradientOutput.MinColor = System.Drawing.Color.Black;
     this.gradientOutput.Count = 3;
     this.gradientOutput.Dock = System.Windows.Forms.DockStyle.Fill;
     this.gradientOutput.Location = new System.Drawing.Point(229, 23);
     this.gradientOutput.Name = "gradientOutput";
     this.tableMain.SetRowSpan(this.gradientOutput, 8);
     this.gradientOutput.Size = new System.Drawing.Size(34, 150);
     this.gradientOutput.MaxColor = System.Drawing.Color.White;
     this.gradientOutput.Value = 0;
     this.gradientOutput.ValueChanged += new PaintDotNet.IndexEventHandler(this.gradientOutput_ValueChanged);
     this.gradientOutput.TabStop = false;
     //
     // tableLayoutPanel2
     //
     this.tableLayoutPanel2.ColumnCount = 9;
     this.tableMain.SetColumnSpan(this.tableLayoutPanel2, 6);
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F));
     this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 83F));
     this.tableLayoutPanel2.Controls.Add(this.blueMaskCheckBox, 5, 0);
     this.tableLayoutPanel2.Controls.Add(this.greenMaskCheckBox, 4, 0);
     this.tableLayoutPanel2.Controls.Add(this.redMaskCheckBox, 3, 0);
     this.tableLayoutPanel2.Controls.Add(this.autoButton, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.resetButton, 1, 0);
     this.tableLayoutPanel2.Controls.Add(this.okButton, 7, 0);
     this.tableLayoutPanel2.Controls.Add(this.cancelButton, 8, 0);
     this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
     this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 179);
     this.tableLayoutPanel2.Name = "tableLayoutPanel2";
     this.tableLayoutPanel2.RowCount = 1;
     this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.tableLayoutPanel2.Size = new System.Drawing.Size(446, 29);
     //
     // histogramInput
     //
     this.histogramInput.Dock = System.Windows.Forms.DockStyle.Fill;
     this.histogramInput.FlipHorizontal = true;
     this.histogramInput.FlipVertical = false;
     this.histogramInput.Histogram = histogramRgb1;
     this.histogramInput.Location = new System.Drawing.Point(3, 23);
     this.histogramInput.Name = "histogramInput";
     this.tableMain.SetRowSpan(this.histogramInput, 8);
     this.histogramInput.Size = new System.Drawing.Size(130, 150);
     this.histogramInput.TabStop = false;
     //
     // histogramOutput
     //
     this.histogramOutput.Dock = System.Windows.Forms.DockStyle.Fill;
     this.histogramOutput.FlipHorizontal = false;
     this.histogramOutput.FlipVertical = false;
     this.histogramOutput.Histogram = histogramRgb2;
     this.histogramOutput.Location = new System.Drawing.Point(319, 23);
     this.histogramOutput.Name = "histogramOutput";
     this.tableMain.SetRowSpan(this.histogramOutput, 8);
     this.histogramOutput.Size = new System.Drawing.Size(130, 150);
     this.histogramOutput.TabStop = false;
     //
     // outputLowUpDown
     //
     this.outputLowUpDown.Dock = System.Windows.Forms.DockStyle.Fill;
     this.outputLowUpDown.Location = new System.Drawing.Point(269, 153);
     this.outputLowUpDown.Maximum = new decimal(new int[] {
     255,
     0,
     0,
     0});
     this.outputLowUpDown.Name = "outputLowUpDown";
     this.outputLowUpDown.Size = new System.Drawing.Size(44, 20);
     this.outputLowUpDown.TabIndex = 5;
     this.outputLowUpDown.ValueChanged += new System.EventHandler(this.outputLowUpDown_ValueChanged);
     this.outputLowUpDown.Validating += new System.ComponentModel.CancelEventHandler(this.outputLowUpDown_Validating);
     //
     // LevelsEffectConfigDialog
     //
     this.AcceptButton = this.okButton;
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleDimensions = new SizeF(96F, 96F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.CancelButton = this.cancelButton;
     this.ClientSize = new System.Drawing.Size(452, 211);
     this.Controls.Add(this.tableMain);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
     this.MaximizeBox = true;
     this.MinimumSize = new System.Drawing.Size(460, 245);
     this.Name = "LevelsEffectConfigDialog";
     this.Load += new System.EventHandler(this.LevelsEffectConfigDialog_Load);
     this.Controls.SetChildIndex(this.tableMain, 0);
     this.tableMain.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.inputHiUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.inputLoUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.outputGammaUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.outputHiUpDown)).EndInit();
     this.tableLayoutPanel2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.outputLowUpDown)).EndInit();
     this.ResumeLayout(false);
 }
Пример #4
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     redUpDown                 = new System.Windows.Forms.NumericUpDown();
     greenUpDown               = new System.Windows.Forms.NumericUpDown();
     blueUpDown                = new System.Windows.Forms.NumericUpDown();
     redLabel                  = new System.Windows.Forms.Label();
     blueLabel                 = new System.Windows.Forms.Label();
     greenLabel                = new System.Windows.Forms.Label();
     saturationLabel           = new System.Windows.Forms.Label();
     valueLabel                = new System.Windows.Forms.Label();
     hueLabel                  = new System.Windows.Forms.Label();
     valueUpDown               = new System.Windows.Forms.NumericUpDown();
     saturationUpDown          = new System.Windows.Forms.NumericUpDown();
     hueUpDown                 = new System.Windows.Forms.NumericUpDown();
     hexBox                    = new System.Windows.Forms.TextBox();
     hexLabel                  = new System.Windows.Forms.Label();
     okBtn                     = new System.Windows.Forms.Button();
     cancelBtn                 = new System.Windows.Forms.Button();
     blueGradientControl       = new PaintDotNet.ColorGradientControl();
     greenGradientControl      = new PaintDotNet.ColorGradientControl();
     redGradientControl        = new PaintDotNet.ColorGradientControl();
     saturationGradientControl = new PaintDotNet.ColorGradientControl();
     hueGradientControl        = new PaintDotNet.ColorGradientControl();
     colorWheel                = new PaintDotNet.ColorWheel();
     hsvHeader                 = new PaintDotNet.HeaderLabel();
     rgbHeader                 = new PaintDotNet.HeaderLabel();
     valueGradientControl      = new PaintDotNet.ColorGradientControl();
     colorDisplayWidget        = new PaintDotNet.ColorRectangleControl();
     swatchHeader              = new PaintDotNet.HeaderLabel();
     swatchControl             = new PaintDotNet.SwatchControl();
     promptLbl                 = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(redUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(greenUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(blueUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(valueUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(saturationUpDown)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(hueUpDown)).BeginInit();
     SuspendLayout();
     //
     // redUpDown
     //
     redUpDown.Location = new System.Drawing.Point(317, 34);
     redUpDown.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     redUpDown.Name          = "redUpDown";
     redUpDown.Size          = new System.Drawing.Size(56, 20);
     redUpDown.TabIndex      = 2;
     redUpDown.TextAlign     = System.Windows.Forms.HorizontalAlignment.Right;
     redUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged);
     redUpDown.Enter        += new System.EventHandler(UpDown_Enter);
     redUpDown.KeyUp        += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp);
     redUpDown.Leave        += new System.EventHandler(UpDown_Leave);
     //
     // greenUpDown
     //
     greenUpDown.Location = new System.Drawing.Point(317, 58);
     greenUpDown.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     greenUpDown.Name          = "greenUpDown";
     greenUpDown.Size          = new System.Drawing.Size(56, 20);
     greenUpDown.TabIndex      = 3;
     greenUpDown.TextAlign     = System.Windows.Forms.HorizontalAlignment.Right;
     greenUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged);
     greenUpDown.Enter        += new System.EventHandler(UpDown_Enter);
     greenUpDown.KeyUp        += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp);
     greenUpDown.Leave        += new System.EventHandler(UpDown_Leave);
     //
     // blueUpDown
     //
     blueUpDown.Location = new System.Drawing.Point(317, 82);
     blueUpDown.Maximum  = new decimal(new int[] {
         255,
         0,
         0,
         0
     });
     blueUpDown.Name          = "blueUpDown";
     blueUpDown.Size          = new System.Drawing.Size(56, 20);
     blueUpDown.TabIndex      = 4;
     blueUpDown.TextAlign     = System.Windows.Forms.HorizontalAlignment.Right;
     blueUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged);
     blueUpDown.Enter        += new System.EventHandler(UpDown_Enter);
     blueUpDown.KeyUp        += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp);
     blueUpDown.Leave        += new System.EventHandler(UpDown_Leave);
     //
     // redLabel
     //
     redLabel.AutoSize  = true;
     redLabel.Location  = new System.Drawing.Point(219, 38);
     redLabel.Name      = "redLabel";
     redLabel.Size      = new System.Drawing.Size(15, 13);
     redLabel.TabIndex  = 7;
     redLabel.Text      = "R";
     redLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // blueLabel
     //
     blueLabel.AutoSize  = true;
     blueLabel.Location  = new System.Drawing.Point(219, 86);
     blueLabel.Name      = "blueLabel";
     blueLabel.Size      = new System.Drawing.Size(14, 13);
     blueLabel.TabIndex  = 8;
     blueLabel.Text      = "B";
     blueLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // greenLabel
     //
     greenLabel.AutoSize  = true;
     greenLabel.Location  = new System.Drawing.Point(219, 62);
     greenLabel.Name      = "greenLabel";
     greenLabel.Size      = new System.Drawing.Size(15, 13);
     greenLabel.TabIndex  = 9;
     greenLabel.Text      = "G";
     greenLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // saturationLabel
     //
     saturationLabel.AutoSize  = true;
     saturationLabel.Location  = new System.Drawing.Point(219, 174);
     saturationLabel.Name      = "saturationLabel";
     saturationLabel.Size      = new System.Drawing.Size(17, 13);
     saturationLabel.TabIndex  = 16;
     saturationLabel.Text      = "S:";
     saturationLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // valueLabel
     //
     valueLabel.AutoSize  = true;
     valueLabel.Location  = new System.Drawing.Point(219, 198);
     valueLabel.Name      = "valueLabel";
     valueLabel.Size      = new System.Drawing.Size(17, 13);
     valueLabel.TabIndex  = 15;
     valueLabel.Text      = "V:";
     valueLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // hueLabel
     //
     hueLabel.AutoSize  = true;
     hueLabel.Location  = new System.Drawing.Point(219, 150);
     hueLabel.Name      = "hueLabel";
     hueLabel.Size      = new System.Drawing.Size(18, 13);
     hueLabel.TabIndex  = 14;
     hueLabel.Text      = "H:";
     hueLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // valueUpDown
     //
     valueUpDown.Location      = new System.Drawing.Point(317, 194);
     valueUpDown.Name          = "valueUpDown";
     valueUpDown.Size          = new System.Drawing.Size(56, 20);
     valueUpDown.TabIndex      = 8;
     valueUpDown.TextAlign     = System.Windows.Forms.HorizontalAlignment.Right;
     valueUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged);
     valueUpDown.Enter        += new System.EventHandler(UpDown_Enter);
     valueUpDown.KeyUp        += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp);
     valueUpDown.Leave        += new System.EventHandler(UpDown_Leave);
     //
     // saturationUpDown
     //
     saturationUpDown.Location      = new System.Drawing.Point(317, 170);
     saturationUpDown.Name          = "saturationUpDown";
     saturationUpDown.Size          = new System.Drawing.Size(56, 20);
     saturationUpDown.TabIndex      = 7;
     saturationUpDown.TextAlign     = System.Windows.Forms.HorizontalAlignment.Right;
     saturationUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged);
     saturationUpDown.Enter        += new System.EventHandler(UpDown_Enter);
     saturationUpDown.KeyUp        += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp);
     saturationUpDown.Leave        += new System.EventHandler(UpDown_Leave);
     //
     // hueUpDown
     //
     hueUpDown.Location = new System.Drawing.Point(317, 146);
     hueUpDown.Maximum  = new decimal(new int[] {
         360,
         0,
         0,
         0
     });
     hueUpDown.Name          = "hueUpDown";
     hueUpDown.Size          = new System.Drawing.Size(56, 20);
     hueUpDown.TabIndex      = 6;
     hueUpDown.TextAlign     = System.Windows.Forms.HorizontalAlignment.Right;
     hueUpDown.ValueChanged += new System.EventHandler(UpDown_ValueChanged);
     hueUpDown.Enter        += new System.EventHandler(UpDown_Enter);
     hueUpDown.KeyUp        += new System.Windows.Forms.KeyEventHandler(UpDown_KeyUp);
     hueUpDown.Leave        += new System.EventHandler(UpDown_Leave);
     //
     // hexBox
     //
     hexBox.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
     hexBox.Location        = new System.Drawing.Point(317, 106);
     hexBox.Name            = "hexBox";
     hexBox.Size            = new System.Drawing.Size(56, 20);
     hexBox.TabIndex        = 5;
     hexBox.TextAlign       = System.Windows.Forms.HorizontalAlignment.Right;
     hexBox.TextChanged    += new System.EventHandler(UpDown_ValueChanged);
     hexBox.Enter          += new System.EventHandler(HexUpDown_Enter);
     hexBox.KeyDown        += new System.Windows.Forms.KeyEventHandler(hexBox_KeyDown);
     hexBox.Leave          += new System.EventHandler(HexUpDown_Leave);
     //
     // hexLabel
     //
     hexLabel.AutoSize  = true;
     hexLabel.Location  = new System.Drawing.Point(219, 109);
     hexLabel.Name      = "hexLabel";
     hexLabel.Size      = new System.Drawing.Size(26, 13);
     hexLabel.TabIndex  = 13;
     hexLabel.Text      = "Hex";
     hexLabel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // okBtn
     //
     okBtn.Location = new System.Drawing.Point(217, 252);
     okBtn.Name     = "okBtn";
     okBtn.Size     = new System.Drawing.Size(75, 23);
     okBtn.TabIndex = 40;
     okBtn.Text     = "Ok";
     okBtn.UseVisualStyleBackColor = true;
     okBtn.Click += new System.EventHandler(okBtn_Click);
     //
     // cancelBtn
     //
     cancelBtn.Location = new System.Drawing.Point(298, 252);
     cancelBtn.Name     = "cancelBtn";
     cancelBtn.Size     = new System.Drawing.Size(75, 23);
     cancelBtn.TabIndex = 41;
     cancelBtn.Text     = "Cancel";
     cancelBtn.UseVisualStyleBackColor = true;
     cancelBtn.Click += new System.EventHandler(cancelBtn_Click);
     //
     // blueGradientControl
     //
     blueGradientControl.Count          = 1;
     blueGradientControl.CustomGradient = null;
     blueGradientControl.DrawFarNub     = true;
     blueGradientControl.DrawNearNub    = false;
     blueGradientControl.Location       = new System.Drawing.Point(240, 83);
     blueGradientControl.MaxColor       = System.Drawing.Color.White;
     blueGradientControl.MinColor       = System.Drawing.Color.Black;
     blueGradientControl.Name           = "blueGradientControl";
     blueGradientControl.Orientation    = System.Windows.Forms.Orientation.Horizontal;
     blueGradientControl.Size           = new System.Drawing.Size(73, 19);
     blueGradientControl.TabIndex       = 39;
     blueGradientControl.TabStop        = false;
     blueGradientControl.Value          = 0;
     blueGradientControl.ValueChanged  += new System.EventHandler <PaintDotNet.IndexEventArgs>(RgbGradientControl_ValueChanged);
     //
     // greenGradientControl
     //
     greenGradientControl.Count          = 1;
     greenGradientControl.CustomGradient = null;
     greenGradientControl.DrawFarNub     = true;
     greenGradientControl.DrawNearNub    = false;
     greenGradientControl.Location       = new System.Drawing.Point(240, 59);
     greenGradientControl.MaxColor       = System.Drawing.Color.White;
     greenGradientControl.MinColor       = System.Drawing.Color.Black;
     greenGradientControl.Name           = "greenGradientControl";
     greenGradientControl.Orientation    = System.Windows.Forms.Orientation.Horizontal;
     greenGradientControl.Size           = new System.Drawing.Size(73, 19);
     greenGradientControl.TabIndex       = 38;
     greenGradientControl.TabStop        = false;
     greenGradientControl.Value          = 0;
     greenGradientControl.ValueChanged  += new System.EventHandler <PaintDotNet.IndexEventArgs>(RgbGradientControl_ValueChanged);
     //
     // redGradientControl
     //
     redGradientControl.Count          = 1;
     redGradientControl.CustomGradient = null;
     redGradientControl.DrawFarNub     = true;
     redGradientControl.DrawNearNub    = false;
     redGradientControl.Location       = new System.Drawing.Point(240, 35);
     redGradientControl.MaxColor       = System.Drawing.Color.White;
     redGradientControl.MinColor       = System.Drawing.Color.Black;
     redGradientControl.Name           = "redGradientControl";
     redGradientControl.Orientation    = System.Windows.Forms.Orientation.Horizontal;
     redGradientControl.Size           = new System.Drawing.Size(73, 19);
     redGradientControl.TabIndex       = 37;
     redGradientControl.TabStop        = false;
     redGradientControl.Value          = 0;
     redGradientControl.ValueChanged  += new System.EventHandler <PaintDotNet.IndexEventArgs>(RgbGradientControl_ValueChanged);
     //
     // saturationGradientControl
     //
     saturationGradientControl.Count          = 1;
     saturationGradientControl.CustomGradient = null;
     saturationGradientControl.DrawFarNub     = true;
     saturationGradientControl.DrawNearNub    = false;
     saturationGradientControl.Location       = new System.Drawing.Point(240, 171);
     saturationGradientControl.MaxColor       = System.Drawing.Color.White;
     saturationGradientControl.MinColor       = System.Drawing.Color.Black;
     saturationGradientControl.Name           = "saturationGradientControl";
     saturationGradientControl.Orientation    = System.Windows.Forms.Orientation.Horizontal;
     saturationGradientControl.Size           = new System.Drawing.Size(73, 19);
     saturationGradientControl.TabIndex       = 35;
     saturationGradientControl.TabStop        = false;
     saturationGradientControl.Value          = 0;
     saturationGradientControl.ValueChanged  += new System.EventHandler <PaintDotNet.IndexEventArgs>(HsvGradientControl_ValueChanged);
     //
     // hueGradientControl
     //
     hueGradientControl.Count          = 1;
     hueGradientControl.CustomGradient = null;
     hueGradientControl.DrawFarNub     = true;
     hueGradientControl.DrawNearNub    = false;
     hueGradientControl.Location       = new System.Drawing.Point(240, 147);
     hueGradientControl.MaxColor       = System.Drawing.Color.White;
     hueGradientControl.MinColor       = System.Drawing.Color.Black;
     hueGradientControl.Name           = "hueGradientControl";
     hueGradientControl.Orientation    = System.Windows.Forms.Orientation.Horizontal;
     hueGradientControl.Size           = new System.Drawing.Size(73, 19);
     hueGradientControl.TabIndex       = 34;
     hueGradientControl.TabStop        = false;
     hueGradientControl.Value          = 0;
     hueGradientControl.ValueChanged  += new System.EventHandler <PaintDotNet.IndexEventArgs>(HsvGradientControl_ValueChanged);
     //
     // colorWheel
     //
     colorWheel.Location      = new System.Drawing.Point(53, 41);
     colorWheel.Name          = "colorWheel";
     colorWheel.Size          = new System.Drawing.Size(146, 147);
     colorWheel.TabIndex      = 3;
     colorWheel.TabStop       = false;
     colorWheel.ColorChanged += new System.EventHandler(ColorWheel_ColorChanged);
     //
     // hsvHeader
     //
     hsvHeader.ForeColor   = System.Drawing.SystemColors.Highlight;
     hsvHeader.Location    = new System.Drawing.Point(219, 130);
     hsvHeader.Name        = "hsvHeader";
     hsvHeader.RightMargin = 0;
     hsvHeader.Size        = new System.Drawing.Size(154, 14);
     hsvHeader.TabIndex    = 28;
     hsvHeader.TabStop     = false;
     //
     // rgbHeader
     //
     rgbHeader.ForeColor   = System.Drawing.SystemColors.Highlight;
     rgbHeader.Location    = new System.Drawing.Point(219, 18);
     rgbHeader.Name        = "rgbHeader";
     rgbHeader.RightMargin = 0;
     rgbHeader.Size        = new System.Drawing.Size(154, 14);
     rgbHeader.TabIndex    = 27;
     rgbHeader.TabStop     = false;
     //
     // valueGradientControl
     //
     valueGradientControl.Count          = 1;
     valueGradientControl.CustomGradient = null;
     valueGradientControl.DrawFarNub     = true;
     valueGradientControl.DrawNearNub    = false;
     valueGradientControl.Location       = new System.Drawing.Point(240, 195);
     valueGradientControl.MaxColor       = System.Drawing.Color.White;
     valueGradientControl.MinColor       = System.Drawing.Color.Black;
     valueGradientControl.Name           = "valueGradientControl";
     valueGradientControl.Orientation    = System.Windows.Forms.Orientation.Horizontal;
     valueGradientControl.Size           = new System.Drawing.Size(73, 19);
     valueGradientControl.TabIndex       = 2;
     valueGradientControl.TabStop        = false;
     valueGradientControl.Value          = 0;
     valueGradientControl.ValueChanged  += new System.EventHandler <PaintDotNet.IndexEventArgs>(HsvGradientControl_ValueChanged);
     //
     // colorDisplayWidget
     //
     colorDisplayWidget.Location       = new System.Drawing.Point(6, 33);
     colorDisplayWidget.Name           = "colorDisplayWidget";
     colorDisplayWidget.RectangleColor = System.Drawing.Color.Empty;
     colorDisplayWidget.Size           = new System.Drawing.Size(42, 42);
     colorDisplayWidget.TabIndex       = 32;
     //
     // swatchHeader
     //
     swatchHeader.ForeColor   = System.Drawing.SystemColors.Highlight;
     swatchHeader.Location    = new System.Drawing.Point(7, 194);
     swatchHeader.Name        = "swatchHeader";
     swatchHeader.RightMargin = 0;
     swatchHeader.Size        = new System.Drawing.Size(193, 14);
     swatchHeader.TabIndex    = 30;
     swatchHeader.TabStop     = false;
     //
     // swatchControl
     //
     swatchControl.BlinkHighlight = false;
     swatchControl.Colors         = new System.Drawing.Color[0];
     swatchControl.Location       = new System.Drawing.Point(7, 206);
     swatchControl.Name           = "swatchControl";
     swatchControl.Size           = new System.Drawing.Size(192, 74);
     swatchControl.TabIndex       = 31;
     swatchControl.Text           = "swatchControl1";
     swatchControl.ColorClicked  += new System.EventHandler <PaintDotNet.IndexEventArgs>(swatchControl_ColorClicked);
     //
     // promptLbl
     //
     promptLbl.AutoSize = true;
     promptLbl.Location = new System.Drawing.Point(4, 9);
     promptLbl.Name     = "promptLbl";
     promptLbl.Size     = new System.Drawing.Size(81, 13);
     promptLbl.TabIndex = 42;
     promptLbl.Text     = "Choose a color:";
     //
     // ColorPickerForm
     //
     AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Dpi;
     ClientSize          = new System.Drawing.Size(386, 284);
     Controls.Add(promptLbl);
     Controls.Add(cancelBtn);
     Controls.Add(okBtn);
     Controls.Add(valueLabel);
     Controls.Add(saturationLabel);
     Controls.Add(hueLabel);
     Controls.Add(greenLabel);
     Controls.Add(blueLabel);
     Controls.Add(redLabel);
     Controls.Add(hexLabel);
     Controls.Add(blueGradientControl);
     Controls.Add(greenGradientControl);
     Controls.Add(redGradientControl);
     Controls.Add(saturationGradientControl);
     Controls.Add(hueGradientControl);
     Controls.Add(colorWheel);
     Controls.Add(hsvHeader);
     Controls.Add(rgbHeader);
     Controls.Add(valueGradientControl);
     Controls.Add(blueUpDown);
     Controls.Add(greenUpDown);
     Controls.Add(redUpDown);
     Controls.Add(hexBox);
     Controls.Add(hueUpDown);
     Controls.Add(saturationUpDown);
     Controls.Add(valueUpDown);
     Controls.Add(colorDisplayWidget);
     Controls.Add(swatchHeader);
     Controls.Add(swatchControl);
     FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     MaximizeBox     = false;
     MinimizeBox     = false;
     Name            = "ColorPickerForm";
     ShowInTaskbar   = false;
     StartPosition   = System.Windows.Forms.FormStartPosition.CenterParent;
     Text            = "Color Picker";
     ((System.ComponentModel.ISupportInitialize)(redUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(greenUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(blueUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(valueUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(saturationUpDown)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(hueUpDown)).EndInit();
     ResumeLayout(false);
     PerformLayout();
 }
 public Int32ColorWheelPropertyControl(PropertyControlInfo propInfo) : base(propInfo)
 {
     if ((base.Property.MinValue != 0) || (base.Property.MaxValue != 0xffffff))
     {
         object[] objArray1 = new object[] { "The only range allowed for this control is [", 0, ", ", 0xffffff, "]" };
         throw new ArgumentException(string.Concat(objArray1));
     }
     base.SuspendLayout();
     this.header                         = new HeadingLabel();
     this.header.Name                    = "header";
     this.header.RightMargin             = 0;
     this.header.Text                    = base.DisplayName;
     this.colorRectangle                 = new ColorRectangleControl();
     this.colorRectangle.Name            = "colorRectangle";
     this.colorRectangle.TabStop         = false;
     this.colorRectangle.TabIndex        = 0;
     this.hsvColorWheel                  = new ColorWheel();
     this.hsvColorWheel.Name             = "hsvColorWheel";
     this.hsvColorWheel.ColorChanged    += new EventHandler(this.OnHsvColorWheelColorChanged);
     this.hsvColorWheel.TabStop          = false;
     this.hsvColorWheel.TabIndex         = 1;
     this.saturationSlider               = new ColorGradientControl();
     this.saturationSlider.Name          = "saturationSlider";
     this.saturationSlider.Orientation   = Orientation.Vertical;
     this.saturationSlider.ValueChanged += new IndexEventHandler(this.OnSaturationSliderValueChanged);
     this.saturationSlider.TabStop       = false;
     this.saturationSlider.TabIndex      = 2;
     this.valueSlider                    = new ColorGradientControl();
     this.valueSlider.Name               = "valueSlider";
     this.valueSlider.Orientation        = Orientation.Vertical;
     this.valueSlider.ValueChanged      += new IndexEventHandler(this.OnValueSliderValueChanged);
     this.valueSlider.TabStop            = false;
     this.valueSlider.TabIndex           = 3;
     this.redLabel                       = new PdnLabel();
     this.redLabel.Name                  = "redLabel";
     this.redLabel.AutoSize              = true;
     this.redLabel.Text                  = PdnResources.GetString("ColorsForm.RedLabel.Text");
     this.redNud                         = new PdnNumericUpDown();
     this.redNud.Name                    = "redNud";
     this.redNud.Minimum                 = decimal.Zero;
     this.redNud.Maximum                 = 255M;
     this.redNud.TextAlign               = HorizontalAlignment.Right;
     this.redNud.ValueChanged           += new EventHandler(this.OnRedNudValueChanged);
     this.redNud.TabIndex                = 4;
     this.greenLabel                     = new PdnLabel();
     this.greenLabel.Name                = "greenLabel";
     this.greenLabel.AutoSize            = true;
     this.greenLabel.Text                = PdnResources.GetString("ColorsForm.GreenLabel.Text");
     this.greenNud                       = new PdnNumericUpDown();
     this.greenNud.Name                  = "greenNud";
     this.greenNud.Minimum               = decimal.Zero;
     this.greenNud.Maximum               = 255M;
     this.greenNud.TextAlign             = HorizontalAlignment.Right;
     this.greenNud.ValueChanged         += new EventHandler(this.OnGreenNudValueChanged);
     this.greenNud.TabIndex              = 5;
     this.blueLabel                      = new PdnLabel();
     this.blueLabel.Name                 = "blueLabel";
     this.blueLabel.AutoSize             = true;
     this.blueLabel.Text                 = PdnResources.GetString("ColorsForm.BlueLabel.Text");
     this.blueNud                        = new PdnNumericUpDown();
     this.blueNud.Name                   = "blueNud";
     this.blueNud.Minimum                = decimal.Zero;
     this.blueNud.Maximum                = 255M;
     this.blueNud.TextAlign              = HorizontalAlignment.Right;
     this.blueNud.ValueChanged          += new EventHandler(this.OnBlueNudValueChanged);
     this.blueNud.TabIndex               = 6;
     this.resetButton                    = new PdnPushButton();
     this.resetButton.AutoSize           = true;
     this.resetButton.Name               = "resetButton";
     this.resetButton.Click             += new EventHandler(this.OnResetButtonClick);
     this.resetButton.Image              = PdnResources.GetImage("Icons.ResetIcon.png");
     this.resetButton.Width              = 1;
     this.resetButton.Visible            = (bool)propInfo.ControlProperties[ControlInfoPropertyNames.ShowResetButton].Value;
     base.ToolTip.SetToolTip(this.resetButton, PdnResources.GetString("Form.ResetButton.Text").Replace("&", ""));
     this.resetButton.TabIndex = 7;
     this.description          = new PdnLabel();
     this.description.Name     = "description";
     this.description.Text     = base.Description;
     Control[] controls = new Control[] { this.header, this.hsvColorWheel, this.saturationSlider, this.valueSlider, this.colorRectangle, this.redLabel, this.redNud, this.greenLabel, this.greenNud, this.blueLabel, this.blueNud, this.resetButton, this.description };
     base.Controls.AddRange(controls);
     base.ResumeLayout(false);
 }