コード例 #1
0
 public void RemoveHuePicker(HuePicker huePicker)
 {
     if (m_HuePickers != null)
     {
         m_HuePickers.Remove(huePicker);
     }
 }
コード例 #2
0
        public void RemoveHuePicker(HuePicker huePicker)
        {
            if (m_HuePickers == null)
            {
                return;
            }

            m_HuePickers.Remove(huePicker);
        }
コード例 #3
0
 public void AddHuePicker(HuePicker huePicker)
 {
     if (this.m_HuePickers == null)
     {
         return;
     }
     HuePicker[] pickerArray1 = this.m_HuePickers;
     this.m_HuePickers = new HuePicker[(pickerArray1.Length + 1)];
     Array.Copy(pickerArray1, 0, this.m_HuePickers, 0, pickerArray1.Length);
     this.m_HuePickers[pickerArray1.Length] = huePicker;
 }
コード例 #4
0
ファイル: PlayerPacketTests.cs プロジェクト: tateima/PathOfUO
        public void TestDisplayHuePicker(int itemID)
        {
            var huePicker = new HuePicker(itemID);

            var expected = new DisplayHuePicker(huePicker).Compile();

            using var ns = PacketTestUtilities.CreateTestNetState();
            ns.SendDisplayHuePicker(huePicker.Serial, huePicker.ItemID);

            var result = ns.SendPipe.Reader.TryRead();

            AssertThat.Equal(result.Buffer[0].AsSpan(0), expected);
        }
コード例 #5
0
ファイル: TopBar.cs プロジェクト: tandj1116/pandorasbox3
        public TopBar()
        {
            InitializeComponent();


            try
            {
                Pandora.Localization.LocalizeMenu(contextMenuStrip);
                _huePicker = new HuePicker();
            }
            catch (Exception) {
                // For designer
            }
        }
コード例 #6
0
        public void AddHuePicker(HuePicker huePicker)
        {
            if (m_HuePickers == null)
            {
                return;
            }

            if (m_HuePickers.Count >= m_HuePickerCap)
            {
                Console.WriteLine("Client: {0}: Exceeded hue picker cap, disconnecting...", this);
                Dispose();
            }
            else
            {
                m_HuePickers.Add(huePicker);
            }
        }
コード例 #7
0
        public void AddHuePicker(HuePicker huePicker)
        {
            if (m_HuePickers == null)
            {
                m_HuePickers = new List <HuePicker>();
            }

            if (m_HuePickers.Count < m_HuePickerCap)
            {
                m_HuePickers.Add(huePicker);
            }
            else
            {
                WriteConsole("Exceeded hue picker cap, disconnecting...");
                Dispose();
            }
        }
コード例 #8
0
ファイル: NetState.cs プロジェクト: witkowski/ServUO
        public void AddHuePicker(HuePicker huePicker)
        {
            if (m_HuePickers == null)
            {
                m_HuePickers = new List <HuePicker>();
            }

            if (m_HuePickers.Count < m_HuePickerCap)
            {
                m_HuePickers.Add(huePicker);
            }
            else
            {
                Utility.PushColor(ConsoleColor.DarkRed);
                WriteConsole("Exceeded hue picker cap, disconnecting...");
                Utility.PopColor();
                Dispose();
            }
        }
コード例 #9
0
        public void TestDisplayHuePicker()
        {
            const ushort itemID    = 0xFF01;
            var          huePicker = new HuePicker(itemID);

            var data = new DisplayHuePicker(huePicker).Compile();

            Span <byte> expectedData = stackalloc byte[9];
            var         pos          = 0;

            expectedData.Write(ref pos, (byte)0x95);
            expectedData.Write(ref pos, huePicker.Serial);
#if NO_LOCAL_INIT
            expectedData.Write(ref pos, (ushort)0);
#else
            pos += 2;
#endif
            expectedData.Write(ref pos, itemID);

            AssertThat.Equal(data, expectedData);
        }
コード例 #10
0
        public void TestDisplayHuePicker()
        {
            ushort itemID    = 0xFF01;
            var    huePicker = new HuePicker(itemID);

            Span <byte> data = new DisplayHuePicker(huePicker).Compile();

            Span <byte> expectedData = stackalloc byte[]
            {
                0x95,                   // Packet ID
                0x00, 0x00, 0x00, 0x00, // Hue Picker Serial
                0x00, 0x00,             // Nothing
                0x00, 0x00              // Item ID
            };

            huePicker.Serial.CopyTo(expectedData.Slice(1, 4));
            itemID.CopyTo(expectedData.Slice(7, 2));

            AssertThat.Equal(data, expectedData);
        }
    }
コード例 #11
0
        public ColorPickerForm()
        {
            borderPen = new Pen(Color.FromArgb(204, 206, 219));

            BackColor = Color.White;
            Size      = new Size(188, 272);
            Location  = new Point(
                Screen.PrimaryScreen.WorkingArea.Width / 2 - Width / 2,
                Screen.PrimaryScreen.WorkingArea.Height / 2 - Height / 2);
            FormBorderStyle = FormBorderStyle.FixedSingle;
            Text            = "Pick a color";
            KeyPreview      = true;
            TopMost         = true;

            vsPicker                    = new ValueSaturationPicker(128, 128);
            vsPicker.Location           = new Point(16, 32);
            vsPicker.ValueChanged      += VsPickerValueChanged;
            vsPicker.SaturationChanged += VsPickerSaturationChanged;

            Controls.Add(vsPicker);

            huePicker             = new HuePicker(20, 128);
            huePicker.Location    = new Point(vsPicker.Location.X + vsPicker.Width + 8, vsPicker.Location.Y);
            huePicker.HueChanged += huePicker_HueChanged;

            Controls.Add(huePicker);

            var hueLabel = new Label();

            hueLabel.Text     = "H:";
            hueLabel.Location = new Point(vsPicker.Location.X, vsPicker.Location.Y + vsPicker.Height + 8);
            var saturationLabel = new Label();

            saturationLabel.Text     = "S:";
            saturationLabel.Location = new Point(hueLabel.Location.X, hueLabel.Location.Y + 22);
            var valueLabel = new Label();

            valueLabel.Text     = "V:";
            valueLabel.Location = new Point(hueLabel.Location.X, saturationLabel.Location.Y + 22);

            Controls.Add(hueLabel);
            Controls.Add(saturationLabel);
            Controls.Add(valueLabel);

            hueNumeric                      = new NumericUpDown();
            hueNumeric.Minimum              = 0;
            hueNumeric.Maximum              = 359;
            hueNumeric.Increment            = 5;
            hueNumeric.Location             = new Point(hueLabel.Location.X + 24, hueLabel.Location.Y);
            hueNumeric.Size                 = new Size(50, 20);
            hueNumeric.ValueChanged        += HueNumericValueChanged;
            hueNumeric.TextAlign            = HorizontalAlignment.Center;
            saturationNumeric               = new NumericUpDown();
            saturationNumeric.Minimum       = 0;
            saturationNumeric.Maximum       = 255;
            saturationNumeric.Location      = new Point(saturationLabel.Location.X + 24, saturationLabel.Location.Y);
            saturationNumeric.Size          = new Size(50, 20);
            saturationNumeric.ValueChanged += SaturationNumericValueChanged;
            saturationNumeric.TextAlign     = HorizontalAlignment.Center;
            valueNumeric                    = new NumericUpDown();
            valueNumeric.Minimum            = 0;
            valueNumeric.Maximum            = 255;
            valueNumeric.Location           = new Point(valueLabel.Location.X + 24, valueLabel.Location.Y);
            valueNumeric.Size               = new Size(50, 20);
            valueNumeric.ValueChanged      += ValueNumericValueChanged;
            valueNumeric.TextAlign          = HorizontalAlignment.Center;

            Controls.Add(hueNumeric);
            Controls.Add(saturationNumeric);
            Controls.Add(valueNumeric);

            var rLabel = new Label();

            rLabel.Text     = "R:";
            rLabel.Location = new Point(hueNumeric.Location.X + hueNumeric.Width + 8, hueLabel.Location.Y);
            var gLabel = new Label();

            gLabel.Text     = "G:";
            gLabel.Location = new Point(rLabel.Location.X, saturationLabel.Location.Y);
            var bLabel = new Label();

            bLabel.Text     = "B:";
            bLabel.Location = new Point(rLabel.Location.X, valueLabel.Location.Y);

            Controls.Add(rLabel);
            Controls.Add(gLabel);
            Controls.Add(bLabel);

            rNumeric               = new NumericUpDown();
            rNumeric.Minimum       = 0;
            rNumeric.Maximum       = 255;
            rNumeric.Location      = new Point(rLabel.Location.X + 24, rLabel.Location.Y);
            rNumeric.Size          = new Size(50, 20);
            rNumeric.TextAlign     = HorizontalAlignment.Center;
            rNumeric.ValueChanged += rNumeric_ValueChanged;
            gNumeric               = new NumericUpDown();
            gNumeric.Minimum       = 0;
            gNumeric.Maximum       = 255;
            gNumeric.Location      = new Point(gLabel.Location.X + 24, gLabel.Location.Y);
            gNumeric.Size          = new Size(50, 20);
            gNumeric.TextAlign     = HorizontalAlignment.Center;
            gNumeric.ValueChanged += gNumeric_ValueChanged;
            bNumeric               = new NumericUpDown();
            bNumeric.Minimum       = 0;
            bNumeric.Maximum       = 255;
            bNumeric.Location      = new Point(bLabel.Location.X + 24, bLabel.Location.Y);
            bNumeric.Size          = new Size(50, 20);
            bNumeric.TextAlign     = HorizontalAlignment.Center;
            bNumeric.ValueChanged += bNumeric_ValueChanged;

            Controls.Add(rNumeric);
            Controls.Add(gNumeric);
            Controls.Add(bNumeric);

            alphaPicker               = new AlphaPicker(valueNumeric.Location.X + valueNumeric.Width - valueLabel.Location.X, 20);
            alphaPicker.Location      = new Point(valueLabel.Location.X, valueLabel.Location.Y + 26);
            alphaPicker.AlphaChanged += alphaPicker_AlphaChanged;
            aLabel                 = new Label();
            aLabel.Location        = new Point(bLabel.Location.X, alphaPicker.Location.Y);
            aLabel.Text            = "A:";
            aNumeric               = new NumericUpDown();
            aNumeric.Minimum       = 0;
            aNumeric.Maximum       = 255;
            aNumeric.Value         = 255;
            aNumeric.Location      = new Point(bNumeric.Location.X, aLabel.Location.Y);
            aNumeric.Size          = new Size(50, 20);
            aNumeric.TextAlign     = HorizontalAlignment.Center;
            aNumeric.ValueChanged += aNumeric_ValueChanged;

            Controls.Add(alphaPicker);
            Controls.Add(aLabel);
            Controls.Add(aNumeric);
        }
コード例 #12
0
        private void SetSelectedColor(UniColor?selc = null)
        {
            UniColor clr;

            if (selc != null)
            {
                clr           = (UniColor)selc;
                SelectedColor = Color.FromArgb(clr.A, clr.R, clr.G, clr.B);

                return;
            }
            else if (SelectedColor == null)
            {
                SelectedColorName    = null;
                Point.Visibility     = Surround.Visibility = Visibility.Hidden;
                HuePicker.Visibility = Visibility.Hidden;
                return;
            }

            clr = ((Color)SelectedColor).GetUniColor();

            var nc = NamedColor.FindColor(clr, NameResolution == ColorNameResolution.Closest);

            if (nc != null)
            {
                SelectedColorName = nc.Name;
            }
            else
            {
                SelectedColorName = clr.ToString(UniColorFormatOptions.HexRgbWebFormat);
            }

            if (cpRender == null)
            {
                return;
            }

            HSVDATA  hsv1 = ColorToHSV(clr);
            HSVDATA  hsv2;
            HSVDATA  hsv3;
            HSVDATA? hsv4 = null;
            HSVDATA? hsv5 = null;
            UniColor uc;

            ColorPickerElement cel = new ColorPickerElement();

            foreach (var c in cpRender.Elements)
            {
                uc = c.Color;

                hsv2 = ColorToHSV(uc);
                hsv3 = (hsv1 - hsv2).Abs();

                if (hsv4 == null)
                {
                    hsv4 = hsv3;
                }
                else if (hsv3 < hsv4)
                {
                    hsv5 = hsv2;
                    hsv4 = hsv3;
                    cel  = c;
                }

                if (selc == uc)
                {
                    cel = c;
                    break;
                }
            }

            if (Mode == ColorPickerMode.HueWheel && !double.IsNaN(ActualWidth) && !double.IsNaN(ActualHeight) && ActualWidth != -1 && ActualHeight != -1)
            {
                if (hsv5 is HSVDATA hsv)
                {
                    Point.Visibility     = Surround.Visibility = Visibility.Hidden;
                    HuePicker.Visibility = Visibility.Visible;
                    int hp = HuePointerSize;

                    PolarCoordinates pc = new PolarCoordinates();

                    double arc = hsv.Hue - HueOffset;
                    if (arc < 0)
                    {
                        arc += 360;
                    }

                    int rad;
                    int h = (int)ActualHeight, w = (int)ActualWidth;

                    if (h < w)
                    {
                        rad = h / 2;
                        w   = h;
                    }
                    else
                    {
                        rad = w / 2;
                        h   = w;
                    }

                    pc.Arc    = arc;
                    pc.Radius = rad;

                    var lc = pc.ToScreenCoordinates(new Rect(0, 0, w, h));

                    if (lc.X < (w / 2))
                    {
                        lc.X -= hp;
                    }

                    if (lc.Y < (h / 2))
                    {
                        lc.Y -= hp;
                    }

                    HuePicker.SetValue(Canvas.LeftProperty, lc.X);
                    HuePicker.SetValue(Canvas.TopProperty, lc.Y);

                    HueSize.ScaleX = (HuePointerSize / 5);
                    HueSize.ScaleY = (HuePointerSize / 5);

                    HueAngle.Angle = pc.Arc;
                }
            }
            else
            {
                Point.Visibility     = Surround.Visibility = Visibility.Visible;
                HuePicker.Visibility = Visibility.Hidden;

                Point.SetValue(Canvas.LeftProperty, (double)cel.Center.X);
                Point.SetValue(Canvas.TopProperty, (double)cel.Center.Y);

                Surround.SetValue(Canvas.LeftProperty, (double)cel.Center.X - 8);
                Surround.SetValue(Canvas.TopProperty, (double)cel.Center.Y - 8);

                Surround.Stroke = Point.Stroke = new SolidColorBrush((Color)SelectedColor);
                selectedElement = cel;
            }
        }
コード例 #13
0
 // Methods
 public DisplayHuePicker(HuePicker huePicker) : base(149, 9)
 {
     this.m_Stream.Write(huePicker.Serial);
     this.m_Stream.Write(((short)0));
     this.m_Stream.Write(((short)huePicker.ItemID));
 }
コード例 #14
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._groupBox1        = new System.Windows.Forms.GroupBox();
     this._maxHBox          = new System.Windows.Forms.TextBox();
     this._label2           = new System.Windows.Forms.Label();
     this._minHBox          = new System.Windows.Forms.TextBox();
     this._label1           = new System.Windows.Forms.Label();
     this._huePicker        = new HuePicker();
     this._groupBox2        = new System.Windows.Forms.GroupBox();
     this._saturationSlider = new ColorSlider();
     this._maxSBox          = new System.Windows.Forms.TextBox();
     this._minSBox          = new System.Windows.Forms.TextBox();
     this._label4           = new System.Windows.Forms.Label();
     this._label3           = new System.Windows.Forms.Label();
     this._groupBox3        = new System.Windows.Forms.GroupBox();
     this._luminanceSlider  = new ColorSlider();
     this._maxLBox          = new System.Windows.Forms.TextBox();
     this._minLBox          = new System.Windows.Forms.TextBox();
     this._label5           = new System.Windows.Forms.Label();
     this._label6           = new System.Windows.Forms.Label();
     this._groupBox5        = new System.Windows.Forms.GroupBox();
     this._filterPreview    = new PictureBox();
     this._groupBox4        = new System.Windows.Forms.GroupBox();
     this._updateLCheck     = new System.Windows.Forms.CheckBox();
     this._fillLBox         = new System.Windows.Forms.TextBox();
     this._label9           = new System.Windows.Forms.Label();
     this._updateSCheck     = new System.Windows.Forms.CheckBox();
     this._fillSBox         = new System.Windows.Forms.TextBox();
     this._label8           = new System.Windows.Forms.Label();
     this._updateHCheck     = new System.Windows.Forms.CheckBox();
     this._fillHBox         = new System.Windows.Forms.TextBox();
     this._label7           = new System.Windows.Forms.Label();
     this._fillTypeCombo    = new System.Windows.Forms.ComboBox();
     this._label10          = new System.Windows.Forms.Label();
     this._cancelButton     = new System.Windows.Forms.Button();
     this._okButton         = new System.Windows.Forms.Button();
     this.llblHelp          = new System.Windows.Forms.LinkLabel();
     this._groupBox1.SuspendLayout();
     this._groupBox2.SuspendLayout();
     this._groupBox3.SuspendLayout();
     this._groupBox5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).BeginInit();
     this._groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // _groupBox1
     //
     this._groupBox1.Controls.Add(this._maxHBox);
     this._groupBox1.Controls.Add(this._label2);
     this._groupBox1.Controls.Add(this._minHBox);
     this._groupBox1.Controls.Add(this._label1);
     this._groupBox1.Controls.Add(this._huePicker);
     this._groupBox1.Location = new System.Drawing.Point(10, 10);
     this._groupBox1.Name     = "_groupBox1";
     this._groupBox1.Size     = new System.Drawing.Size(280, 230);
     this._groupBox1.TabIndex = 1;
     this._groupBox1.TabStop  = false;
     this._groupBox1.Text     = "Hue";
     //
     // _maxHBox
     //
     this._maxHBox.Location     = new System.Drawing.Point(218, 20);
     this._maxHBox.Name         = "_maxHBox";
     this._maxHBox.Size         = new System.Drawing.Size(50, 20);
     this._maxHBox.TabIndex     = 4;
     this._maxHBox.TextChanged += new System.EventHandler(this.maxHBox_TextChanged);
     //
     // _label2
     //
     this._label2.Location = new System.Drawing.Point(186, 23);
     this._label2.Name     = "_label2";
     this._label2.Size     = new System.Drawing.Size(39, 15);
     this._label2.TabIndex = 3;
     this._label2.Text     = "Max:";
     //
     // _minHBox
     //
     this._minHBox.Location     = new System.Drawing.Point(40, 20);
     this._minHBox.Name         = "_minHBox";
     this._minHBox.Size         = new System.Drawing.Size(50, 20);
     this._minHBox.TabIndex     = 2;
     this._minHBox.TextChanged += new System.EventHandler(this.minHBox_TextChanged);
     //
     // _label1
     //
     this._label1.Location = new System.Drawing.Point(10, 23);
     this._label1.Name     = "_label1";
     this._label1.Size     = new System.Drawing.Size(31, 17);
     this._label1.TabIndex = 1;
     this._label1.Text     = "Min:";
     //
     // _huePicker
     //
     this._huePicker.Location       = new System.Drawing.Point(53, 50);
     this._huePicker.Name           = "_huePicker";
     this._huePicker.Size           = new System.Drawing.Size(170, 170);
     this._huePicker.TabIndex       = 0;
     this._huePicker.Type           = HuePicker.HuePickerType.Range;
     this._huePicker.ValuesChanged += new System.EventHandler(this.huePicker_ValuesChanged);
     this._huePicker.Click         += new System.EventHandler(this._huePicker_Click);
     //
     // _groupBox2
     //
     this._groupBox2.Controls.Add(this._saturationSlider);
     this._groupBox2.Controls.Add(this._maxSBox);
     this._groupBox2.Controls.Add(this._minSBox);
     this._groupBox2.Controls.Add(this._label4);
     this._groupBox2.Controls.Add(this._label3);
     this._groupBox2.Location = new System.Drawing.Point(10, 245);
     this._groupBox2.Name     = "_groupBox2";
     this._groupBox2.Size     = new System.Drawing.Size(280, 75);
     this._groupBox2.TabIndex = 2;
     this._groupBox2.TabStop  = false;
     this._groupBox2.Text     = "Saturation";
     //
     // _saturationSlider
     //
     this._saturationSlider.Location       = new System.Drawing.Point(8, 45);
     this._saturationSlider.Name           = "_saturationSlider";
     this._saturationSlider.Size           = new System.Drawing.Size(262, 23);
     this._saturationSlider.TabIndex       = 4;
     this._saturationSlider.Type           = ColorSlider.ColorSliderType.InnerGradient;
     this._saturationSlider.ValuesChanged += new System.EventHandler(this.saturationSlider_ValuesChanged);
     //
     // _maxSBox
     //
     this._maxSBox.Location     = new System.Drawing.Point(218, 20);
     this._maxSBox.Name         = "_maxSBox";
     this._maxSBox.Size         = new System.Drawing.Size(50, 20);
     this._maxSBox.TabIndex     = 3;
     this._maxSBox.TextChanged += new System.EventHandler(this.maxSBox_TextChanged);
     //
     // _minSBox
     //
     this._minSBox.Location     = new System.Drawing.Point(40, 20);
     this._minSBox.Name         = "_minSBox";
     this._minSBox.Size         = new System.Drawing.Size(50, 20);
     this._minSBox.TabIndex     = 2;
     this._minSBox.TextChanged += new System.EventHandler(this.minSBox_TextChanged);
     //
     // _label4
     //
     this._label4.Location = new System.Drawing.Point(186, 23);
     this._label4.Name     = "_label4";
     this._label4.Size     = new System.Drawing.Size(30, 17);
     this._label4.TabIndex = 1;
     this._label4.Text     = "Max:";
     //
     // _label3
     //
     this._label3.Location = new System.Drawing.Point(10, 23);
     this._label3.Name     = "_label3";
     this._label3.Size     = new System.Drawing.Size(30, 16);
     this._label3.TabIndex = 0;
     this._label3.Text     = "Min:";
     //
     // _groupBox3
     //
     this._groupBox3.Controls.Add(this._luminanceSlider);
     this._groupBox3.Controls.Add(this._maxLBox);
     this._groupBox3.Controls.Add(this._minLBox);
     this._groupBox3.Controls.Add(this._label5);
     this._groupBox3.Controls.Add(this._label6);
     this._groupBox3.Location = new System.Drawing.Point(10, 325);
     this._groupBox3.Name     = "_groupBox3";
     this._groupBox3.Size     = new System.Drawing.Size(280, 75);
     this._groupBox3.TabIndex = 3;
     this._groupBox3.TabStop  = false;
     this._groupBox3.Text     = "Luminance";
     //
     // _luminanceSlider
     //
     this._luminanceSlider.Location       = new System.Drawing.Point(8, 45);
     this._luminanceSlider.Name           = "_luminanceSlider";
     this._luminanceSlider.Size           = new System.Drawing.Size(262, 23);
     this._luminanceSlider.TabIndex       = 9;
     this._luminanceSlider.Type           = ColorSlider.ColorSliderType.InnerGradient;
     this._luminanceSlider.ValuesChanged += new System.EventHandler(this.luminanceSlider_ValuesChanged);
     //
     // _maxLBox
     //
     this._maxLBox.Location     = new System.Drawing.Point(218, 20);
     this._maxLBox.Name         = "_maxLBox";
     this._maxLBox.Size         = new System.Drawing.Size(50, 20);
     this._maxLBox.TabIndex     = 8;
     this._maxLBox.TextChanged += new System.EventHandler(this.maxLBox_TextChanged);
     //
     // _minLBox
     //
     this._minLBox.Location     = new System.Drawing.Point(40, 20);
     this._minLBox.Name         = "_minLBox";
     this._minLBox.Size         = new System.Drawing.Size(50, 20);
     this._minLBox.TabIndex     = 7;
     this._minLBox.TextChanged += new System.EventHandler(this.minLBox_TextChanged);
     //
     // _label5
     //
     this._label5.Location = new System.Drawing.Point(186, 23);
     this._label5.Name     = "_label5";
     this._label5.Size     = new System.Drawing.Size(30, 17);
     this._label5.TabIndex = 6;
     this._label5.Text     = "Max:";
     //
     // _label6
     //
     this._label6.Location = new System.Drawing.Point(10, 23);
     this._label6.Name     = "_label6";
     this._label6.Size     = new System.Drawing.Size(30, 16);
     this._label6.TabIndex = 5;
     this._label6.Text     = "Min:";
     //
     // _groupBox5
     //
     this._groupBox5.Controls.Add(this._filterPreview);
     this._groupBox5.Location = new System.Drawing.Point(300, 10);
     this._groupBox5.Name     = "_groupBox5";
     this._groupBox5.Size     = new System.Drawing.Size(322, 230);
     this._groupBox5.TabIndex = 4;
     this._groupBox5.TabStop  = false;
     this._groupBox5.Text     = "Detector View";
     //
     // _filterPreview
     //
     this._filterPreview.Image    = null;
     this._filterPreview.Location = new System.Drawing.Point(10, 15);
     this._filterPreview.Name     = "_filterPreview";
     this._filterPreview.Size     = new System.Drawing.Size(306, 205);
     this._filterPreview.TabIndex = 0;
     this._filterPreview.TabStop  = false;
     this._filterPreview.Click   += new System.EventHandler(this._filterPreview_Click);
     //
     // _groupBox4
     //
     this._groupBox4.Controls.Add(this._updateLCheck);
     this._groupBox4.Controls.Add(this._fillLBox);
     this._groupBox4.Controls.Add(this._label9);
     this._groupBox4.Controls.Add(this._updateSCheck);
     this._groupBox4.Controls.Add(this._fillSBox);
     this._groupBox4.Controls.Add(this._label8);
     this._groupBox4.Controls.Add(this._updateHCheck);
     this._groupBox4.Controls.Add(this._fillHBox);
     this._groupBox4.Controls.Add(this._label7);
     this._groupBox4.Location = new System.Drawing.Point(300, 245);
     this._groupBox4.Name     = "_groupBox4";
     this._groupBox4.Size     = new System.Drawing.Size(170, 100);
     this._groupBox4.TabIndex = 5;
     this._groupBox4.TabStop  = false;
     this._groupBox4.Text     = "Fill Color";
     //
     // _updateLCheck
     //
     this._updateLCheck.Checked         = true;
     this._updateLCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateLCheck.Location        = new System.Drawing.Point(125, 70);
     this._updateLCheck.Name            = "_updateLCheck";
     this._updateLCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateLCheck.TabIndex        = 8;
     this._updateLCheck.CheckedChanged += new System.EventHandler(this.updateLCheck_CheckedChanged);
     //
     // _fillLBox
     //
     this._fillLBox.Location     = new System.Drawing.Point(40, 70);
     this._fillLBox.Name         = "_fillLBox";
     this._fillLBox.Size         = new System.Drawing.Size(50, 20);
     this._fillLBox.TabIndex     = 7;
     this._fillLBox.TextChanged += new System.EventHandler(this.fillLBox_TextChanged);
     //
     // _label9
     //
     this._label9.Location = new System.Drawing.Point(10, 73);
     this._label9.Name     = "_label9";
     this._label9.Size     = new System.Drawing.Size(20, 16);
     this._label9.TabIndex = 6;
     this._label9.Text     = "L:";
     //
     // _updateSCheck
     //
     this._updateSCheck.Checked         = true;
     this._updateSCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateSCheck.Location        = new System.Drawing.Point(125, 45);
     this._updateSCheck.Name            = "_updateSCheck";
     this._updateSCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateSCheck.TabIndex        = 5;
     this._updateSCheck.CheckedChanged += new System.EventHandler(this.updateSCheck_CheckedChanged);
     //
     // _fillSBox
     //
     this._fillSBox.Location     = new System.Drawing.Point(40, 45);
     this._fillSBox.Name         = "_fillSBox";
     this._fillSBox.Size         = new System.Drawing.Size(50, 20);
     this._fillSBox.TabIndex     = 4;
     this._fillSBox.TextChanged += new System.EventHandler(this.fillSBox_TextChanged);
     //
     // _label8
     //
     this._label8.Location = new System.Drawing.Point(10, 48);
     this._label8.Name     = "_label8";
     this._label8.Size     = new System.Drawing.Size(20, 16);
     this._label8.TabIndex = 3;
     this._label8.Text     = "S:";
     //
     // _updateHCheck
     //
     this._updateHCheck.Checked         = true;
     this._updateHCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateHCheck.Location        = new System.Drawing.Point(125, 20);
     this._updateHCheck.Name            = "_updateHCheck";
     this._updateHCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateHCheck.TabIndex        = 2;
     this._updateHCheck.CheckedChanged += new System.EventHandler(this.updateHCheck_CheckedChanged);
     //
     // _fillHBox
     //
     this._fillHBox.Location     = new System.Drawing.Point(40, 20);
     this._fillHBox.Name         = "_fillHBox";
     this._fillHBox.Size         = new System.Drawing.Size(50, 20);
     this._fillHBox.TabIndex     = 1;
     this._fillHBox.TextChanged += new System.EventHandler(this.fillHBox_TextChanged);
     //
     // _label7
     //
     this._label7.Location = new System.Drawing.Point(10, 23);
     this._label7.Name     = "_label7";
     this._label7.Size     = new System.Drawing.Size(20, 16);
     this._label7.TabIndex = 0;
     this._label7.Text     = "H:";
     //
     // _fillTypeCombo
     //
     this._fillTypeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._fillTypeCombo.Items.AddRange(new object[] {
         "Outside",
         "Inside"
     });
     this._fillTypeCombo.Location              = new System.Drawing.Point(300, 379);
     this._fillTypeCombo.Name                  = "_fillTypeCombo";
     this._fillTypeCombo.Size                  = new System.Drawing.Size(170, 21);
     this._fillTypeCombo.TabIndex              = 10;
     this._fillTypeCombo.SelectedIndexChanged += new System.EventHandler(this.fillTypeCombo_SelectedIndexChanged);
     //
     // _label10
     //
     this._label10.AutoSize = true;
     this._label10.Location = new System.Drawing.Point(297, 352);
     this._label10.Name     = "_label10";
     this._label10.Size     = new System.Drawing.Size(45, 13);
     this._label10.TabIndex = 13;
     this._label10.Text     = "Fill type:";
     //
     // _cancelButton
     //
     this._cancelButton.AutoSize     = true;
     this._cancelButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this._cancelButton.FlatStyle    = System.Windows.Forms.FlatStyle.Flat;
     this._cancelButton.Location     = new System.Drawing.Point(570, 407);
     this._cancelButton.Name         = "_cancelButton";
     this._cancelButton.Size         = new System.Drawing.Size(52, 25);
     this._cancelButton.TabIndex     = 12;
     this._cancelButton.Text         = "Cancel";
     //
     // _okButton
     //
     this._okButton.AutoSize     = true;
     this._okButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this._okButton.FlatStyle    = System.Windows.Forms.FlatStyle.Flat;
     this._okButton.Location     = new System.Drawing.Point(531, 407);
     this._okButton.Name         = "_okButton";
     this._okButton.Size         = new System.Drawing.Size(33, 25);
     this._okButton.TabIndex     = 11;
     this._okButton.Text         = "Ok";
     this._okButton.Click       += new System.EventHandler(this._okButton_Click);
     //
     // llblHelp
     //
     this.llblHelp.AutoSize     = true;
     this.llblHelp.Location     = new System.Drawing.Point(476, 413);
     this.llblHelp.Name         = "llblHelp";
     this.llblHelp.Size         = new System.Drawing.Size(29, 13);
     this.llblHelp.TabIndex     = 64;
     this.llblHelp.TabStop      = true;
     this.llblHelp.Text         = "Help";
     this.llblHelp.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.llblHelp_LinkClicked);
     //
     // HSLFilteringForm
     //
     this.AcceptButton      = this._okButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this._cancelButton;
     this.ClientSize        = new System.Drawing.Size(634, 439);
     this.Controls.Add(this.llblHelp);
     this.Controls.Add(this._fillTypeCombo);
     this.Controls.Add(this._label10);
     this.Controls.Add(this._cancelButton);
     this.Controls.Add(this._okButton);
     this.Controls.Add(this._groupBox4);
     this.Controls.Add(this._groupBox5);
     this.Controls.Add(this._groupBox3);
     this.Controls.Add(this._groupBox2);
     this.Controls.Add(this._groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "HSLFilteringForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "HSL Filtering";
     this.Load           += new System.EventHandler(this.HSLFilteringForm_Load);
     this._groupBox1.ResumeLayout(false);
     this._groupBox1.PerformLayout();
     this._groupBox2.ResumeLayout(false);
     this._groupBox2.PerformLayout();
     this._groupBox3.ResumeLayout(false);
     this._groupBox3.PerformLayout();
     this._groupBox5.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).EndInit();
     this._groupBox4.ResumeLayout(false);
     this._groupBox4.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
コード例 #15
0
ファイル: ColorPicker.cs プロジェクト: Meragon/Unity-WinForms
        public ColorPickerForm(ColorPicker owner)
        {
            _owner = owner;

            Size = new Size(188, 264);
            Location = new Point(
                Screen.PrimaryScreen.WorkingArea.Width / 2 - Width / 2,
                Screen.PrimaryScreen.WorkingArea.Height / 2 - Height / 2);
            Resizable = false;
            Text = "Pick a color";
            TopMost = true;

            _bsPicker = new BrightnessSaturationPicker(128, 128);
            _bsPicker.Location = new Point(16, 24);
            _bsPicker.BrightnessChanged += _bsPicker_BrightnessChanged;
            _bsPicker.SaturationChanged += _bsPicker_SaturationChanged;

            Controls.Add(_bsPicker);

            _huePicker = new HuePicker(20, 128);
            _huePicker.Location = new Point(_bsPicker.Location.X + _bsPicker.Width + 8, _bsPicker.Location.Y);
            _huePicker.HueChanged += _huePicker_HueChanged;

            Controls.Add(_huePicker);

            _hLabel = new Label();
            _hLabel.Text = "H:";
            _hLabel.Location = new Point(_bsPicker.Location.X, _bsPicker.Location.Y + _bsPicker.Height + 8);
            _sLabel = new Label();
            _sLabel.Text = "S:";
            _sLabel.Location = new Point(_hLabel.Location.X, _hLabel.Location.Y + 22);
            _lLabel = new Label();
            _lLabel.Text = "L:";
            _lLabel.Location = new Point(_hLabel.Location.X, _sLabel.Location.Y + 22);

            Controls.Add(_hLabel);
            Controls.Add(_sLabel);
            Controls.Add(_lLabel);

            _hNumeric = new NumericUpDown();
            _hNumeric.Minimum = 0;
            _hNumeric.Maximum = 360;
            _hNumeric.Location = new Point(_hLabel.Location.X + 24, _hLabel.Location.Y);
            _hNumeric.Size = new Drawing.Size(50, 20);
            _hNumeric.ValueChanged += _hNumeric_ValueChanged;
            _hNumeric.TextAlign = HorizontalAlignment.Center;
            _sNumeric = new NumericUpDown();
            _sNumeric.Minimum = 0;
            _sNumeric.Maximum = 255;
            _sNumeric.Location = new Point(_sLabel.Location.X + 24, _sLabel.Location.Y);
            _sNumeric.Size = new Drawing.Size(50, 20);
            _sNumeric.ValueChanged += _sNumeric_ValueChanged;
            _sNumeric.TextAlign = HorizontalAlignment.Center;
            _lNumeric = new NumericUpDown();
            _lNumeric.Minimum = 0;
            _lNumeric.Maximum = 255;
            _lNumeric.Location = new Point(_lLabel.Location.X + 24, _lLabel.Location.Y);
            _lNumeric.Size = new Drawing.Size(50, 20);
            _lNumeric.ValueChanged += _lNumeric_ValueChanged;
            _lNumeric.TextAlign = HorizontalAlignment.Center;

            Controls.Add(_hNumeric);
            Controls.Add(_sNumeric);
            Controls.Add(_lNumeric);

            _rLabel = new Label();
            _rLabel.Text = "R:";
            _rLabel.Location = new Point(_hNumeric.Location.X + _hNumeric.Width + 8, _hLabel.Location.Y);
            _gLabel = new Label();
            _gLabel.Text = "G:";
            _gLabel.Location = new Point(_rLabel.Location.X, _sLabel.Location.Y);
            _bLabel = new Label();
            _bLabel.Text = "B:";
            _bLabel.Location = new Point(_rLabel.Location.X, _lLabel.Location.Y);

            Controls.Add(_rLabel);
            Controls.Add(_gLabel);
            Controls.Add(_bLabel);

            _rNumeric = new NumericUpDown();
            _rNumeric.Minimum = 0;
            _rNumeric.Maximum = 255;
            _rNumeric.Location = new Point(_rLabel.Location.X + 24, _rLabel.Location.Y);
            _rNumeric.Size = new Size(50, 20);
            _rNumeric.TextAlign = HorizontalAlignment.Center;
            _rNumeric.ValueChanged += _rNumeric_ValueChanged;
            _gNumeric = new NumericUpDown();
            _gNumeric.Minimum = 0;
            _gNumeric.Maximum = 255;
            _gNumeric.Location = new Point(_gLabel.Location.X + 24, _gLabel.Location.Y);
            _gNumeric.Size = new Drawing.Size(50, 20);
            _gNumeric.TextAlign = HorizontalAlignment.Center;
            _gNumeric.ValueChanged += _gNumeric_ValueChanged;
            _bNumeric = new NumericUpDown();
            _bNumeric.Minimum = 0;
            _bNumeric.Maximum = 255;
            _bNumeric.Location = new Point(_bLabel.Location.X + 24, _bLabel.Location.Y);
            _bNumeric.Size = new Drawing.Size(50, 20);
            _bNumeric.TextAlign = HorizontalAlignment.Center;
            _bNumeric.ValueChanged += _bNumeric_ValueChanged;

            Controls.Add(_rNumeric);
            Controls.Add(_gNumeric);
            Controls.Add(_bNumeric);

            _alphaPicker = new AlphaPicker(_lNumeric.Location.X + _lNumeric.Width - _lLabel.Location.X, 20);
            _alphaPicker.Location = new Point(_lLabel.Location.X, _lLabel.Location.Y + 26);
            _alphaPicker.AlphaChanged += _alphaPicker_AlphaChanged;
            _aLabel = new Label();
            _aLabel.Location = new Point(_bLabel.Location.X, _alphaPicker.Location.Y);
            _aLabel.Text = "A:";
            _aNumeric = new NumericUpDown();
            _aNumeric.Minimum = 0;
            _aNumeric.Maximum = 255;
            _aNumeric.Value = 255;
            _aNumeric.Location = new Point(_bNumeric.Location.X, _aLabel.Location.Y);
            _aNumeric.Size = new Drawing.Size(50, 20);
            _aNumeric.TextAlign = HorizontalAlignment.Center;
            _aNumeric.ValueChanged += _aNumeric_ValueChanged;

            Controls.Add(_alphaPicker);
            Controls.Add(_aLabel);
            Controls.Add(_aNumeric);
        }
コード例 #16
0
        public ColorPickerForm(ColorPicker owner)
        {
            _owner = owner;

            Size     = new Size(188, 264);
            Location = new Point(
                Screen.PrimaryScreen.WorkingArea.Width / 2 - Width / 2,
                Screen.PrimaryScreen.WorkingArea.Height / 2 - Height / 2);
            Resizable = false;
            Text      = "Pick a color";
            TopMost   = true;

            _bsPicker                    = new BrightnessSaturationPicker(128, 128);
            _bsPicker.Location           = new Point(16, 24);
            _bsPicker.BrightnessChanged += _bsPicker_BrightnessChanged;
            _bsPicker.SaturationChanged += _bsPicker_SaturationChanged;

            Controls.Add(_bsPicker);

            _huePicker             = new HuePicker(20, 128);
            _huePicker.Location    = new Point(_bsPicker.Location.X + _bsPicker.Width + 8, _bsPicker.Location.Y);
            _huePicker.HueChanged += _huePicker_HueChanged;

            Controls.Add(_huePicker);

            _hLabel          = new Label();
            _hLabel.Text     = "H:";
            _hLabel.Location = new Point(_bsPicker.Location.X, _bsPicker.Location.Y + _bsPicker.Height + 8);
            _sLabel          = new Label();
            _sLabel.Text     = "S:";
            _sLabel.Location = new Point(_hLabel.Location.X, _hLabel.Location.Y + 22);
            _lLabel          = new Label();
            _lLabel.Text     = "L:";
            _lLabel.Location = new Point(_hLabel.Location.X, _sLabel.Location.Y + 22);

            Controls.Add(_hLabel);
            Controls.Add(_sLabel);
            Controls.Add(_lLabel);

            _hNumeric               = new NumericUpDown();
            _hNumeric.Minimum       = 0;
            _hNumeric.Maximum       = 360;
            _hNumeric.Location      = new Point(_hLabel.Location.X + 24, _hLabel.Location.Y);
            _hNumeric.Size          = new Drawing.Size(50, 20);
            _hNumeric.ValueChanged += _hNumeric_ValueChanged;
            _hNumeric.TextAlign     = HorizontalAlignment.Center;
            _sNumeric               = new NumericUpDown();
            _sNumeric.Minimum       = 0;
            _sNumeric.Maximum       = 255;
            _sNumeric.Location      = new Point(_sLabel.Location.X + 24, _sLabel.Location.Y);
            _sNumeric.Size          = new Drawing.Size(50, 20);
            _sNumeric.ValueChanged += _sNumeric_ValueChanged;
            _sNumeric.TextAlign     = HorizontalAlignment.Center;
            _lNumeric               = new NumericUpDown();
            _lNumeric.Minimum       = 0;
            _lNumeric.Maximum       = 255;
            _lNumeric.Location      = new Point(_lLabel.Location.X + 24, _lLabel.Location.Y);
            _lNumeric.Size          = new Drawing.Size(50, 20);
            _lNumeric.ValueChanged += _lNumeric_ValueChanged;
            _lNumeric.TextAlign     = HorizontalAlignment.Center;

            Controls.Add(_hNumeric);
            Controls.Add(_sNumeric);
            Controls.Add(_lNumeric);

            _rLabel          = new Label();
            _rLabel.Text     = "R:";
            _rLabel.Location = new Point(_hNumeric.Location.X + _hNumeric.Width + 8, _hLabel.Location.Y);
            _gLabel          = new Label();
            _gLabel.Text     = "G:";
            _gLabel.Location = new Point(_rLabel.Location.X, _sLabel.Location.Y);
            _bLabel          = new Label();
            _bLabel.Text     = "B:";
            _bLabel.Location = new Point(_rLabel.Location.X, _lLabel.Location.Y);

            Controls.Add(_rLabel);
            Controls.Add(_gLabel);
            Controls.Add(_bLabel);

            _rNumeric               = new NumericUpDown();
            _rNumeric.Minimum       = 0;
            _rNumeric.Maximum       = 255;
            _rNumeric.Location      = new Point(_rLabel.Location.X + 24, _rLabel.Location.Y);
            _rNumeric.Size          = new Size(50, 20);
            _rNumeric.TextAlign     = HorizontalAlignment.Center;
            _rNumeric.ValueChanged += _rNumeric_ValueChanged;
            _gNumeric               = new NumericUpDown();
            _gNumeric.Minimum       = 0;
            _gNumeric.Maximum       = 255;
            _gNumeric.Location      = new Point(_gLabel.Location.X + 24, _gLabel.Location.Y);
            _gNumeric.Size          = new Drawing.Size(50, 20);
            _gNumeric.TextAlign     = HorizontalAlignment.Center;
            _gNumeric.ValueChanged += _gNumeric_ValueChanged;
            _bNumeric               = new NumericUpDown();
            _bNumeric.Minimum       = 0;
            _bNumeric.Maximum       = 255;
            _bNumeric.Location      = new Point(_bLabel.Location.X + 24, _bLabel.Location.Y);
            _bNumeric.Size          = new Drawing.Size(50, 20);
            _bNumeric.TextAlign     = HorizontalAlignment.Center;
            _bNumeric.ValueChanged += _bNumeric_ValueChanged;

            Controls.Add(_rNumeric);
            Controls.Add(_gNumeric);
            Controls.Add(_bNumeric);

            _alphaPicker               = new AlphaPicker(_lNumeric.Location.X + _lNumeric.Width - _lLabel.Location.X, 20);
            _alphaPicker.Location      = new Point(_lLabel.Location.X, _lLabel.Location.Y + 26);
            _alphaPicker.AlphaChanged += _alphaPicker_AlphaChanged;
            _aLabel                 = new Label();
            _aLabel.Location        = new Point(_bLabel.Location.X, _alphaPicker.Location.Y);
            _aLabel.Text            = "A:";
            _aNumeric               = new NumericUpDown();
            _aNumeric.Minimum       = 0;
            _aNumeric.Maximum       = 255;
            _aNumeric.Value         = 255;
            _aNumeric.Location      = new Point(_bNumeric.Location.X, _aLabel.Location.Y);
            _aNumeric.Size          = new Drawing.Size(50, 20);
            _aNumeric.TextAlign     = HorizontalAlignment.Center;
            _aNumeric.ValueChanged += _aNumeric_ValueChanged;

            Controls.Add(_alphaPicker);
            Controls.Add(_aLabel);
            Controls.Add(_aNumeric);
        }
コード例 #17
0
ファイル: PlayerPackets.cs プロジェクト: tateima/PathOfUO
 public DisplayHuePicker(HuePicker huePicker) : base(0x95, 9)
 {
     Stream.Write(huePicker.Serial);
     Stream.Write((short)0);
     Stream.Write((short)huePicker.ItemID);
 }
コード例 #18
0
ファイル: HSLFilteringForm.cs プロジェクト: Sirendium/IQ-VMS
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this._groupBox1        = new System.Windows.Forms.GroupBox();
     this._maxHBox          = new System.Windows.Forms.TextBox();
     this._label2           = new System.Windows.Forms.Label();
     this._minHBox          = new System.Windows.Forms.TextBox();
     this._label1           = new System.Windows.Forms.Label();
     this._huePicker        = new iSpyApplication.Controls.HuePicker();
     this._groupBox2        = new System.Windows.Forms.GroupBox();
     this._saturationSlider = new iSpyApplication.Controls.ColorSlider();
     this._maxSBox          = new System.Windows.Forms.TextBox();
     this._minSBox          = new System.Windows.Forms.TextBox();
     this._label4           = new System.Windows.Forms.Label();
     this._label3           = new System.Windows.Forms.Label();
     this._groupBox3        = new System.Windows.Forms.GroupBox();
     this._luminanceSlider  = new iSpyApplication.Controls.ColorSlider();
     this._maxLBox          = new System.Windows.Forms.TextBox();
     this._minLBox          = new System.Windows.Forms.TextBox();
     this._label5           = new System.Windows.Forms.Label();
     this._label6           = new System.Windows.Forms.Label();
     this._groupBox5        = new System.Windows.Forms.GroupBox();
     this._filterPreview    = new iSpyApplication.Controls.PictureBox();
     this._groupBox4        = new System.Windows.Forms.GroupBox();
     this._updateLCheck     = new System.Windows.Forms.CheckBox();
     this._fillLBox         = new System.Windows.Forms.TextBox();
     this._label9           = new System.Windows.Forms.Label();
     this._updateSCheck     = new System.Windows.Forms.CheckBox();
     this._fillSBox         = new System.Windows.Forms.TextBox();
     this._label8           = new System.Windows.Forms.Label();
     this._updateHCheck     = new System.Windows.Forms.CheckBox();
     this._fillHBox         = new System.Windows.Forms.TextBox();
     this._label7           = new System.Windows.Forms.Label();
     this._fillTypeCombo    = new System.Windows.Forms.ComboBox();
     this._label10          = new System.Windows.Forms.Label();
     this._cancelButton     = new System.Windows.Forms.Button();
     this._okButton         = new System.Windows.Forms.Button();
     this._groupBox1.SuspendLayout();
     this._groupBox2.SuspendLayout();
     this._groupBox3.SuspendLayout();
     this._groupBox5.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).BeginInit();
     this._groupBox4.SuspendLayout();
     this.SuspendLayout();
     //
     // _groupBox1
     //
     this._groupBox1.Controls.Add(this._maxHBox);
     this._groupBox1.Controls.Add(this._label2);
     this._groupBox1.Controls.Add(this._minHBox);
     this._groupBox1.Controls.Add(this._label1);
     this._groupBox1.Controls.Add(this._huePicker);
     this._groupBox1.ForeColor = System.Drawing.Color.White;
     this._groupBox1.Location  = new System.Drawing.Point(10, 10);
     this._groupBox1.Name      = "_groupBox1";
     this._groupBox1.Size      = new System.Drawing.Size(368, 230);
     this._groupBox1.TabIndex  = 1;
     this._groupBox1.TabStop   = false;
     this._groupBox1.Text      = "Hue";
     //
     // _maxHBox
     //
     this._maxHBox.Location     = new System.Drawing.Point(222, 17);
     this._maxHBox.Name         = "_maxHBox";
     this._maxHBox.Size         = new System.Drawing.Size(90, 27);
     this._maxHBox.TabIndex     = 4;
     this._maxHBox.TextChanged += new System.EventHandler(this.maxHBox_TextChanged);
     //
     // _label2
     //
     this._label2.Location = new System.Drawing.Point(167, 23);
     this._label2.Name     = "_label2";
     this._label2.Size     = new System.Drawing.Size(64, 21);
     this._label2.TabIndex = 3;
     this._label2.Text     = "Max:";
     //
     // _minHBox
     //
     this._minHBox.Location     = new System.Drawing.Point(80, 17);
     this._minHBox.Name         = "_minHBox";
     this._minHBox.Size         = new System.Drawing.Size(81, 27);
     this._minHBox.TabIndex     = 2;
     this._minHBox.TextChanged += new System.EventHandler(this.minHBox_TextChanged);
     //
     // _label1
     //
     this._label1.Location = new System.Drawing.Point(9, 23);
     this._label1.Name     = "_label1";
     this._label1.Size     = new System.Drawing.Size(65, 21);
     this._label1.TabIndex = 1;
     this._label1.Text     = "Min:";
     //
     // _huePicker
     //
     this._huePicker.Location       = new System.Drawing.Point(102, 50);
     this._huePicker.Name           = "_huePicker";
     this._huePicker.Size           = new System.Drawing.Size(178, 170);
     this._huePicker.TabIndex       = 0;
     this._huePicker.Type           = iSpyApplication.Controls.HuePicker.HuePickerType.Range;
     this._huePicker.ValuesChanged += new System.EventHandler(this.huePicker_ValuesChanged);
     this._huePicker.Click         += new System.EventHandler(this._huePicker_Click);
     //
     // _groupBox2
     //
     this._groupBox2.Controls.Add(this._saturationSlider);
     this._groupBox2.Controls.Add(this._maxSBox);
     this._groupBox2.Controls.Add(this._minSBox);
     this._groupBox2.Controls.Add(this._label4);
     this._groupBox2.Controls.Add(this._label3);
     this._groupBox2.ForeColor = System.Drawing.Color.White;
     this._groupBox2.Location  = new System.Drawing.Point(10, 245);
     this._groupBox2.Name      = "_groupBox2";
     this._groupBox2.Size      = new System.Drawing.Size(280, 104);
     this._groupBox2.TabIndex  = 2;
     this._groupBox2.TabStop   = false;
     this._groupBox2.Text      = "Saturation";
     //
     // _saturationSlider
     //
     this._saturationSlider.Location       = new System.Drawing.Point(8, 65);
     this._saturationSlider.Name           = "_saturationSlider";
     this._saturationSlider.Size           = new System.Drawing.Size(262, 23);
     this._saturationSlider.TabIndex       = 4;
     this._saturationSlider.Type           = iSpyApplication.Controls.ColorSlider.ColorSliderType.InnerGradient;
     this._saturationSlider.ValuesChanged += new System.EventHandler(this.saturationSlider_ValuesChanged);
     //
     // _maxSBox
     //
     this._maxSBox.Location     = new System.Drawing.Point(193, 20);
     this._maxSBox.Name         = "_maxSBox";
     this._maxSBox.Size         = new System.Drawing.Size(75, 27);
     this._maxSBox.TabIndex     = 3;
     this._maxSBox.TextChanged += new System.EventHandler(this.maxSBox_TextChanged);
     //
     // _minSBox
     //
     this._minSBox.Location     = new System.Drawing.Point(68, 20);
     this._minSBox.Name         = "_minSBox";
     this._minSBox.Size         = new System.Drawing.Size(50, 27);
     this._minSBox.TabIndex     = 2;
     this._minSBox.TextChanged += new System.EventHandler(this.minSBox_TextChanged);
     //
     // _label4
     //
     this._label4.Location = new System.Drawing.Point(138, 23);
     this._label4.Name     = "_label4";
     this._label4.Size     = new System.Drawing.Size(62, 17);
     this._label4.TabIndex = 1;
     this._label4.Text     = "Max:";
     //
     // _label3
     //
     this._label3.Location = new System.Drawing.Point(10, 23);
     this._label3.Name     = "_label3";
     this._label3.Size     = new System.Drawing.Size(51, 16);
     this._label3.TabIndex = 0;
     this._label3.Text     = "Min:";
     //
     // _groupBox3
     //
     this._groupBox3.Controls.Add(this._luminanceSlider);
     this._groupBox3.Controls.Add(this._maxLBox);
     this._groupBox3.Controls.Add(this._minLBox);
     this._groupBox3.Controls.Add(this._label5);
     this._groupBox3.Controls.Add(this._label6);
     this._groupBox3.ForeColor = System.Drawing.Color.White;
     this._groupBox3.Location  = new System.Drawing.Point(10, 355);
     this._groupBox3.Name      = "_groupBox3";
     this._groupBox3.Size      = new System.Drawing.Size(280, 99);
     this._groupBox3.TabIndex  = 3;
     this._groupBox3.TabStop   = false;
     this._groupBox3.Text      = "Luminance";
     //
     // _luminanceSlider
     //
     this._luminanceSlider.Location       = new System.Drawing.Point(8, 70);
     this._luminanceSlider.Name           = "_luminanceSlider";
     this._luminanceSlider.Size           = new System.Drawing.Size(262, 23);
     this._luminanceSlider.TabIndex       = 9;
     this._luminanceSlider.Type           = iSpyApplication.Controls.ColorSlider.ColorSliderType.InnerGradient;
     this._luminanceSlider.ValuesChanged += new System.EventHandler(this.luminanceSlider_ValuesChanged);
     //
     // _maxLBox
     //
     this._maxLBox.Location     = new System.Drawing.Point(218, 20);
     this._maxLBox.Name         = "_maxLBox";
     this._maxLBox.Size         = new System.Drawing.Size(50, 27);
     this._maxLBox.TabIndex     = 8;
     this._maxLBox.TextChanged += new System.EventHandler(this.maxLBox_TextChanged);
     //
     // _minLBox
     //
     this._minLBox.Location     = new System.Drawing.Point(68, 20);
     this._minLBox.Name         = "_minLBox";
     this._minLBox.Size         = new System.Drawing.Size(50, 27);
     this._minLBox.TabIndex     = 7;
     this._minLBox.TextChanged += new System.EventHandler(this.minLBox_TextChanged);
     //
     // _label5
     //
     this._label5.Location = new System.Drawing.Point(150, 23);
     this._label5.Name     = "_label5";
     this._label5.Size     = new System.Drawing.Size(62, 17);
     this._label5.TabIndex = 6;
     this._label5.Text     = "Max:";
     //
     // _label6
     //
     this._label6.Location = new System.Drawing.Point(9, 26);
     this._label6.Name     = "_label6";
     this._label6.Size     = new System.Drawing.Size(52, 16);
     this._label6.TabIndex = 5;
     this._label6.Text     = "Min:";
     //
     // _groupBox5
     //
     this._groupBox5.Controls.Add(this._filterPreview);
     this._groupBox5.ForeColor = System.Drawing.Color.White;
     this._groupBox5.Location  = new System.Drawing.Point(400, 10);
     this._groupBox5.Name      = "_groupBox5";
     this._groupBox5.Size      = new System.Drawing.Size(284, 182);
     this._groupBox5.TabIndex  = 4;
     this._groupBox5.TabStop   = false;
     this._groupBox5.Text      = "Detector View";
     //
     // _filterPreview
     //
     this._filterPreview.Dock     = System.Windows.Forms.DockStyle.Fill;
     this._filterPreview.Image    = null;
     this._filterPreview.Location = new System.Drawing.Point(3, 23);
     this._filterPreview.Name     = "_filterPreview";
     this._filterPreview.Size     = new System.Drawing.Size(278, 156);
     this._filterPreview.TabIndex = 0;
     this._filterPreview.TabStop  = false;
     this._filterPreview.Click   += new System.EventHandler(this._filterPreview_Click);
     //
     // _groupBox4
     //
     this._groupBox4.Controls.Add(this._updateLCheck);
     this._groupBox4.Controls.Add(this._fillLBox);
     this._groupBox4.Controls.Add(this._label9);
     this._groupBox4.Controls.Add(this._updateSCheck);
     this._groupBox4.Controls.Add(this._fillSBox);
     this._groupBox4.Controls.Add(this._label8);
     this._groupBox4.Controls.Add(this._updateHCheck);
     this._groupBox4.Controls.Add(this._fillHBox);
     this._groupBox4.Controls.Add(this._label7);
     this._groupBox4.ForeColor = System.Drawing.Color.White;
     this._groupBox4.Location  = new System.Drawing.Point(296, 326);
     this._groupBox4.Name      = "_groupBox4";
     this._groupBox4.Size      = new System.Drawing.Size(170, 100);
     this._groupBox4.TabIndex  = 5;
     this._groupBox4.TabStop   = false;
     this._groupBox4.Text      = "Fill Color";
     //
     // _updateLCheck
     //
     this._updateLCheck.Checked         = true;
     this._updateLCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateLCheck.Location        = new System.Drawing.Point(125, 70);
     this._updateLCheck.Name            = "_updateLCheck";
     this._updateLCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateLCheck.TabIndex        = 8;
     this._updateLCheck.CheckedChanged += new System.EventHandler(this.updateLCheck_CheckedChanged);
     //
     // _fillLBox
     //
     this._fillLBox.Location     = new System.Drawing.Point(40, 70);
     this._fillLBox.Name         = "_fillLBox";
     this._fillLBox.Size         = new System.Drawing.Size(50, 27);
     this._fillLBox.TabIndex     = 7;
     this._fillLBox.TextChanged += new System.EventHandler(this.fillLBox_TextChanged);
     //
     // _label9
     //
     this._label9.Location = new System.Drawing.Point(10, 73);
     this._label9.Name     = "_label9";
     this._label9.Size     = new System.Drawing.Size(20, 16);
     this._label9.TabIndex = 6;
     this._label9.Text     = "L:";
     //
     // _updateSCheck
     //
     this._updateSCheck.Checked         = true;
     this._updateSCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateSCheck.Location        = new System.Drawing.Point(125, 45);
     this._updateSCheck.Name            = "_updateSCheck";
     this._updateSCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateSCheck.TabIndex        = 5;
     this._updateSCheck.CheckedChanged += new System.EventHandler(this.updateSCheck_CheckedChanged);
     //
     // _fillSBox
     //
     this._fillSBox.Location     = new System.Drawing.Point(40, 45);
     this._fillSBox.Name         = "_fillSBox";
     this._fillSBox.Size         = new System.Drawing.Size(50, 27);
     this._fillSBox.TabIndex     = 4;
     this._fillSBox.TextChanged += new System.EventHandler(this.fillSBox_TextChanged);
     //
     // _label8
     //
     this._label8.Location = new System.Drawing.Point(10, 48);
     this._label8.Name     = "_label8";
     this._label8.Size     = new System.Drawing.Size(20, 16);
     this._label8.TabIndex = 3;
     this._label8.Text     = "S:";
     //
     // _updateHCheck
     //
     this._updateHCheck.Checked         = true;
     this._updateHCheck.CheckState      = System.Windows.Forms.CheckState.Checked;
     this._updateHCheck.Location        = new System.Drawing.Point(125, 20);
     this._updateHCheck.Name            = "_updateHCheck";
     this._updateHCheck.Size            = new System.Drawing.Size(14, 24);
     this._updateHCheck.TabIndex        = 2;
     this._updateHCheck.CheckedChanged += new System.EventHandler(this.updateHCheck_CheckedChanged);
     //
     // _fillHBox
     //
     this._fillHBox.Location     = new System.Drawing.Point(40, 20);
     this._fillHBox.Name         = "_fillHBox";
     this._fillHBox.Size         = new System.Drawing.Size(50, 27);
     this._fillHBox.TabIndex     = 1;
     this._fillHBox.TextChanged += new System.EventHandler(this.fillHBox_TextChanged);
     //
     // _label7
     //
     this._label7.Location = new System.Drawing.Point(10, 23);
     this._label7.Name     = "_label7";
     this._label7.Size     = new System.Drawing.Size(20, 16);
     this._label7.TabIndex = 0;
     this._label7.Text     = "H:";
     //
     // _fillTypeCombo
     //
     this._fillTypeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this._fillTypeCombo.Items.AddRange(new object[] {
         "Outside",
         "Inside"
     });
     this._fillTypeCombo.Location              = new System.Drawing.Point(472, 355);
     this._fillTypeCombo.Name                  = "_fillTypeCombo";
     this._fillTypeCombo.Size                  = new System.Drawing.Size(170, 26);
     this._fillTypeCombo.TabIndex              = 10;
     this._fillTypeCombo.SelectedIndexChanged += new System.EventHandler(this.fillTypeCombo_SelectedIndexChanged);
     //
     // _label10
     //
     this._label10.AutoSize  = true;
     this._label10.ForeColor = System.Drawing.Color.White;
     this._label10.Location  = new System.Drawing.Point(469, 334);
     this._label10.Name      = "_label10";
     this._label10.Size      = new System.Drawing.Size(81, 18);
     this._label10.TabIndex  = 13;
     this._label10.Text      = "Fill type:";
     //
     // _cancelButton
     //
     this._cancelButton.AutoSizeMode            = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._cancelButton.BackColor               = System.Drawing.Color.Black;
     this._cancelButton.DialogResult            = System.Windows.Forms.DialogResult.Cancel;
     this._cancelButton.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this._cancelButton.Font                    = new System.Drawing.Font("Verdana", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this._cancelButton.ForeColor               = System.Drawing.Color.White;
     this._cancelButton.Location                = new System.Drawing.Point(670, 405);
     this._cancelButton.Name                    = "_cancelButton";
     this._cancelButton.Size                    = new System.Drawing.Size(160, 49);
     this._cancelButton.TabIndex                = 12;
     this._cancelButton.Text                    = "Cancel";
     this._cancelButton.UseVisualStyleBackColor = false;
     //
     // _okButton
     //
     this._okButton.AutoSizeMode            = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this._okButton.BackColor               = System.Drawing.Color.Black;
     this._okButton.DialogResult            = System.Windows.Forms.DialogResult.OK;
     this._okButton.FlatStyle               = System.Windows.Forms.FlatStyle.Flat;
     this._okButton.Font                    = new System.Drawing.Font("Verdana", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this._okButton.ForeColor               = System.Drawing.Color.White;
     this._okButton.Location                = new System.Drawing.Point(503, 405);
     this._okButton.Name                    = "_okButton";
     this._okButton.Size                    = new System.Drawing.Size(161, 49);
     this._okButton.TabIndex                = 11;
     this._okButton.Text                    = "Ok";
     this._okButton.UseVisualStyleBackColor = false;
     this._okButton.Click                  += new System.EventHandler(this._okButton_Click);
     //
     // HSLFilteringForm
     //
     this.AcceptButton      = this._okButton;
     this.AutoScaleBaseSize = new System.Drawing.Size(9, 20);
     this.BackColor         = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.CancelButton      = this._cancelButton;
     this.ClientSize        = new System.Drawing.Size(868, 476);
     this.Controls.Add(this._fillTypeCombo);
     this.Controls.Add(this._label10);
     this.Controls.Add(this._cancelButton);
     this.Controls.Add(this._okButton);
     this.Controls.Add(this._groupBox4);
     this.Controls.Add(this._groupBox5);
     this.Controls.Add(this._groupBox3);
     this.Controls.Add(this._groupBox2);
     this.Controls.Add(this._groupBox1);
     this.Font            = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "HSLFilteringForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "HSL Filtering";
     this.Load           += new System.EventHandler(this.HSLFilteringForm_Load);
     this._groupBox1.ResumeLayout(false);
     this._groupBox1.PerformLayout();
     this._groupBox2.ResumeLayout(false);
     this._groupBox2.PerformLayout();
     this._groupBox3.ResumeLayout(false);
     this._groupBox3.PerformLayout();
     this._groupBox5.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this._filterPreview)).EndInit();
     this._groupBox4.ResumeLayout(false);
     this._groupBox4.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }