/// <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.legendLabel = new System.Windows.Forms.Label();
     this.loadButton = new System.Windows.Forms.Button();
     this.saveButton = new System.Windows.Forms.Button();
     this.grid = new PhotoBrushProject.GridArrayInt();
     this.sizeCombo = new System.Windows.Forms.ComboBox();
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.operatorCombo = new System.Windows.Forms.ComboBox();
     this.OkButton = new System.Windows.Forms.Button();
     this.cancelButton = new System.Windows.Forms.Button();
     this.ofd = new System.Windows.Forms.OpenFileDialog();
     this.sfd = new System.Windows.Forms.SaveFileDialog();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.filterPreview = new PhotoBrushProject.FilterPreview();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.legendLabel);
     this.groupBox1.Controls.Add(this.loadButton);
     this.groupBox1.Controls.Add(this.saveButton);
     this.groupBox1.Controls.Add(this.grid);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(425, 375);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Structuring Element";
     //
     // legendLabel
     //
     this.legendLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.legendLabel.BackColor = System.Drawing.Color.White;
     this.legendLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.legendLabel.Location = new System.Drawing.Point(10, 345);
     this.legendLabel.Name = "legendLabel";
     this.legendLabel.Size = new System.Drawing.Size(240, 18);
     this.legendLabel.TabIndex = 4;
     this.legendLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // loadButton
     //
     this.loadButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.loadButton.Location = new System.Drawing.Point(340, 345);
     this.loadButton.Name = "loadButton";
     this.loadButton.Size = new System.Drawing.Size(75, 23);
     this.loadButton.TabIndex = 2;
     this.loadButton.TabStop = false;
     this.loadButton.Text = "&Load";
     this.loadButton.Click += new System.EventHandler(this.loadButton_Click);
     //
     // saveButton
     //
     this.saveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.saveButton.Location = new System.Drawing.Point(255, 345);
     this.saveButton.Name = "saveButton";
     this.saveButton.Size = new System.Drawing.Size(75, 23);
     this.saveButton.TabIndex = 3;
     this.saveButton.TabStop = false;
     this.saveButton.Text = "&Save";
     this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
     //
     // grid
     //
     this.grid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.grid.AutoSizeMinHeight = 10;
     this.grid.AutoSizeMinWidth = 10;
     this.grid.AutoStretchColumnsToFitWidth = false;
     this.grid.AutoStretchRowsToFitHeight = false;
     this.grid.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.grid.ContextMenuStyle = SourceGrid2.ContextMenuStyle.None;
     this.grid.CustomSort = false;
     this.grid.GridToolTipActive = true;
     this.grid.Location = new System.Drawing.Point(10, 20);
     this.grid.Name = "grid";
     this.grid.Size = new System.Drawing.Size(405, 315);
     this.grid.SpecialKeys = ((SourceGrid2.GridSpecialKeys)(((((((((((SourceGrid2.GridSpecialKeys.Ctrl_C | SourceGrid2.GridSpecialKeys.Ctrl_V)
     | SourceGrid2.GridSpecialKeys.Ctrl_X)
     | SourceGrid2.GridSpecialKeys.Delete)
     | SourceGrid2.GridSpecialKeys.Arrows)
     | SourceGrid2.GridSpecialKeys.Tab)
     | SourceGrid2.GridSpecialKeys.PageDownUp)
     | SourceGrid2.GridSpecialKeys.Enter)
     | SourceGrid2.GridSpecialKeys.Escape)
     | SourceGrid2.GridSpecialKeys.Control)
     | SourceGrid2.GridSpecialKeys.Shift)));
     this.grid.TabIndex = 0;
     this.grid.ValueChanged += new PhotoBrushProject.GridArrayInt.GridEventHandler(this.grid_ValueChanged);
     //
     // sizeCombo
     //
     this.sizeCombo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.sizeCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.sizeCombo.Location = new System.Drawing.Point(450, 30);
     this.sizeCombo.Name = "sizeCombo";
     this.sizeCombo.Size = new System.Drawing.Size(170, 21);
     this.sizeCombo.TabIndex = 1;
     this.sizeCombo.SelectedIndexChanged += new System.EventHandler(this.sizeCombo_SelectedIndexChanged);
     //
     // label1
     //
     this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Location = new System.Drawing.Point(450, 15);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(132, 15);
     this.label1.TabIndex = 0;
     this.label1.Text = "Structuring element size:";
     //
     // label2
     //
     this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Location = new System.Drawing.Point(450, 60);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(120, 15);
     this.label2.TabIndex = 2;
     this.label2.Text = "Morpology operator:";
     //
     // operatorCombo
     //
     this.operatorCombo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.operatorCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.operatorCombo.Location = new System.Drawing.Point(450, 75);
     this.operatorCombo.Name = "operatorCombo";
     this.operatorCombo.Size = new System.Drawing.Size(170, 21);
     this.operatorCombo.TabIndex = 3;
     this.operatorCombo.SelectedIndexChanged += new System.EventHandler(this.operatorCombo_SelectedIndexChanged);
     //
     // OkButton
     //
     this.OkButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.OkButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.OkButton.Location = new System.Drawing.Point(460, 355);
     this.OkButton.Name = "OkButton";
     this.OkButton.Size = new System.Drawing.Size(75, 23);
     this.OkButton.TabIndex = 4;
     this.OkButton.Text = "Ok";
     //
     // cancelButton
     //
     this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Location = new System.Drawing.Point(545, 355);
     this.cancelButton.Name = "cancelButton";
     this.cancelButton.Size = new System.Drawing.Size(75, 23);
     this.cancelButton.TabIndex = 5;
     this.cancelButton.Text = "Cancel";
     //
     // ofd
     //
     this.ofd.DefaultExt = "txt";
     this.ofd.Filter = "Text files (*.txt)|*.txt";
     this.ofd.Title = "Load structuring element from file";
     //
     // sfd
     //
     this.sfd.DefaultExt = "txt";
     this.sfd.FileName = "se.txt";
     this.sfd.Filter = "Text files (*.txt)|*.txt";
     this.sfd.Title = "Save structuring element to file";
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.filterPreview);
     this.groupBox2.Location = new System.Drawing.Point(450, 105);
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size(170, 175);
     this.groupBox2.TabIndex = 10;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "Preview";
     //
     // 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(150, 150);
     this.filterPreview.TabIndex = 8;
     //
     // MathMorphologyForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton = this.cancelButton;
     this.ClientSize = new System.Drawing.Size(627, 396);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.OkButton);
     this.Controls.Add(this.operatorCombo);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.sizeCombo);
     this.Controls.Add(this.groupBox1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.Name = "MathMorphologyForm";
     this.ShowInTaskbar = false;
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Mathematical Morphology";
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }
示例#2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.cancelButton  = new System.Windows.Forms.Button();
     this.okButton      = new System.Windows.Forms.Button();
     this.operatorCombo = new System.Windows.Forms.ComboBox();
     this.label2        = new System.Windows.Forms.Label();
     this.sizeCombo     = new System.Windows.Forms.ComboBox();
     this.groupBox1     = new System.Windows.Forms.GroupBox();
     this.loadButton    = new System.Windows.Forms.Button();
     this.saveButton    = new System.Windows.Forms.Button();
     this.grid          = new PhotoBrushProject.GridArrayInt();
     this.label1        = new System.Windows.Forms.Label();
     this.sfd           = new System.Windows.Forms.SaveFileDialog();
     this.ofd           = new System.Windows.Forms.OpenFileDialog();
     this.filterPreview = new PhotoBrushProject.FilterPreview();
     this.groupBox2     = new System.Windows.Forms.GroupBox();
     this.groupBox1.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.SuspendLayout();
     //
     // cancelButton
     //
     this.cancelButton.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.cancelButton.Location     = new System.Drawing.Point(545, 355);
     this.cancelButton.Name         = "cancelButton";
     this.cancelButton.Size         = new System.Drawing.Size(75, 23);
     this.cancelButton.TabIndex     = 5;
     this.cancelButton.Text         = "Cancel";
     //
     // okButton
     //
     this.okButton.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.okButton.Location     = new System.Drawing.Point(460, 355);
     this.okButton.Name         = "okButton";
     this.okButton.Size         = new System.Drawing.Size(75, 23);
     this.okButton.TabIndex     = 4;
     this.okButton.Text         = "Ok";
     //
     // operatorCombo
     //
     this.operatorCombo.Anchor        = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.operatorCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.operatorCombo.Items.AddRange(new object[] {
         "Convolution",
         "Correlation"
     });
     this.operatorCombo.Location              = new System.Drawing.Point(450, 75);
     this.operatorCombo.Name                  = "operatorCombo";
     this.operatorCombo.Size                  = new System.Drawing.Size(170, 21);
     this.operatorCombo.TabIndex              = 3;
     this.operatorCombo.SelectedIndexChanged += new System.EventHandler(this.operatorCombo_SelectedIndexChanged);
     //
     // label2
     //
     this.label2.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label2.Location = new System.Drawing.Point(450, 60);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(62, 15);
     this.label2.TabIndex = 2;
     this.label2.Text     = "Operation:";
     //
     // sizeCombo
     //
     this.sizeCombo.Anchor                = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.sizeCombo.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.sizeCombo.Location              = new System.Drawing.Point(450, 30);
     this.sizeCombo.Name                  = "sizeCombo";
     this.sizeCombo.Size                  = new System.Drawing.Size(170, 21);
     this.sizeCombo.TabIndex              = 1;
     this.sizeCombo.SelectedIndexChanged += new System.EventHandler(this.sizeCombo_SelectedIndexChanged);
     //
     // groupBox1
     //
     this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox1.Controls.Add(this.loadButton);
     this.groupBox1.Controls.Add(this.saveButton);
     this.groupBox1.Controls.Add(this.grid);
     this.groupBox1.Location = new System.Drawing.Point(10, 10);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(425, 375);
     this.groupBox1.TabIndex = 2;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "Kernel";
     //
     // loadButton
     //
     this.loadButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.loadButton.Location = new System.Drawing.Point(340, 344);
     this.loadButton.Name     = "loadButton";
     this.loadButton.Size     = new System.Drawing.Size(75, 23);
     this.loadButton.TabIndex = 0;
     this.loadButton.TabStop  = false;
     this.loadButton.Text     = "&Load";
     this.loadButton.Click   += new System.EventHandler(this.loadButton_Click);
     //
     // saveButton
     //
     this.saveButton.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.saveButton.Location = new System.Drawing.Point(260, 344);
     this.saveButton.Name     = "saveButton";
     this.saveButton.Size     = new System.Drawing.Size(75, 23);
     this.saveButton.TabIndex = 1;
     this.saveButton.TabStop  = false;
     this.saveButton.Text     = "&Save";
     this.saveButton.Click   += new System.EventHandler(this.saveButton_Click);
     //
     // grid
     //
     this.grid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                               | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.grid.AutoSizeMinHeight            = 10;
     this.grid.AutoSizeMinWidth             = 10;
     this.grid.AutoStretchColumnsToFitWidth = false;
     this.grid.AutoStretchRowsToFitHeight   = false;
     this.grid.BorderStyle       = System.Windows.Forms.BorderStyle.FixedSingle;
     this.grid.ContextMenuStyle  = SourceGrid2.ContextMenuStyle.None;
     this.grid.CustomSort        = false;
     this.grid.GridToolTipActive = true;
     this.grid.Location          = new System.Drawing.Point(10, 20);
     this.grid.Name        = "grid";
     this.grid.Size        = new System.Drawing.Size(405, 315);
     this.grid.SpecialKeys = ((SourceGrid2.GridSpecialKeys)(((((((((((SourceGrid2.GridSpecialKeys.Ctrl_C | SourceGrid2.GridSpecialKeys.Ctrl_V)
                                                                     | SourceGrid2.GridSpecialKeys.Ctrl_X)
                                                                    | SourceGrid2.GridSpecialKeys.Delete)
                                                                   | SourceGrid2.GridSpecialKeys.Arrows)
                                                                  | SourceGrid2.GridSpecialKeys.Tab)
                                                                 | SourceGrid2.GridSpecialKeys.PageDownUp)
                                                                | SourceGrid2.GridSpecialKeys.Enter)
                                                               | SourceGrid2.GridSpecialKeys.Escape)
                                                              | SourceGrid2.GridSpecialKeys.Control)
                                                             | SourceGrid2.GridSpecialKeys.Shift)));
     this.grid.TabIndex      = 2;
     this.grid.TabStop       = true;
     this.grid.ValueChanged += new PhotoBrushProject.GridArrayInt.GridEventHandler(this.grid_ValueChanged);
     //
     // label1
     //
     this.label1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.label1.Location = new System.Drawing.Point(450, 15);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(66, 15);
     this.label1.TabIndex = 0;
     this.label1.Text     = "Kernel size:";
     //
     // sfd
     //
     this.sfd.DefaultExt = "txt";
     this.sfd.FileName   = "kernel.txt";
     this.sfd.Filter     = "Text files (*.txt)|*.txt";
     this.sfd.Title      = "Save kernel to file";
     //
     // ofd
     //
     this.ofd.DefaultExt = "txt";
     this.ofd.Filter     = "Text files (*.txt)|*.txt";
     this.ofd.Title      = "Load kernel from file";
     //
     // 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(150, 150);
     this.filterPreview.TabIndex = 8;
     //
     // groupBox2
     //
     this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.groupBox2.Controls.Add(this.filterPreview);
     this.groupBox2.Location = new System.Drawing.Point(450, 105);
     this.groupBox2.Name     = "groupBox2";
     this.groupBox2.Size     = new System.Drawing.Size(170, 175);
     this.groupBox2.TabIndex = 9;
     this.groupBox2.TabStop  = false;
     this.groupBox2.Text     = "Preview";
     //
     // ConvolutionForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.CancelButton      = this.cancelButton;
     this.ClientSize        = new System.Drawing.Size(627, 396);
     this.Controls.Add(this.groupBox2);
     this.Controls.Add(this.cancelButton);
     this.Controls.Add(this.okButton);
     this.Controls.Add(this.operatorCombo);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.sizeCombo);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.label1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
     this.Name            = "ConvolutionForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Convolution & Correlation";
     this.groupBox1.ResumeLayout(false);
     this.groupBox2.ResumeLayout(false);
     this.ResumeLayout(false);
 }