diff --git a/src/PBAnaly/Module/LanesMannage.cs b/src/PBAnaly/Module/LanesMannage.cs index 3c601aa..14044c6 100644 --- a/src/PBAnaly/Module/LanesMannage.cs +++ b/src/PBAnaly/Module/LanesMannage.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.IO; using System.Linq; +using System.Runtime.InteropServices; using System.Text; using System.Threading; using System.Threading.Tasks; @@ -36,6 +37,7 @@ namespace PBAnaly.Module private string path { get; set; } private string curImagePath; + PBBiology pbb = new PBBiology(); private Image image_L16; private byte[] image_byte; private byte[] image_8bit_byte; @@ -133,7 +135,32 @@ namespace PBAnaly.Module private void ImageAlg(band_infos aatb) { - + + //Mat image = new Mat(image_L16.Height,image_L16.Width,MatType.CV_8UC1); + //Marshal.Copy(image_8bit_byte,0,image.Data,image_8bit_byte.Length); + + //Mat whiteBackgroundImg = new Mat(); + //Scalar meanValue = Cv2.Mean(image); + //if (meanValue[0] < 10000) + //{ + // Cv2.BitwiseNot(image, whiteBackgroundImg); + //} + //else + //{ + // whiteBackgroundImg = image.Clone(); + //} + + //List proteinRect = new List(); + //// 算法使用的是8bit的图进行计算 + //unsafe + //{ + // fixed (byte* p = image_8bit_byte) + // { + // proteinRect = pbb.getProteinRectVC(p, (ushort)image_L16.Width, (ushort)image_L16.Height); + // } + + + //} } /// @@ -152,10 +179,14 @@ namespace PBAnaly.Module imagePanel.FormClosing += ImagePanel_FormClosing; imagePanel.FormClosed += ImagePanel_FormClosed; + + + imagePaletteForm.mb_findLanes.Click += Mb_findLanes_Click; + KeyboardListener.Register(OnKeyPressed); // 创建键盘钩子 } - + private bool ReadTiff() { @@ -304,6 +335,13 @@ namespace PBAnaly.Module } #endregion + #region imagePalette + private void Mb_findLanes_Click(object sender, EventArgs e) + { + + } + #endregion + private void OnKeyPressed(Keys key, bool ctrl, bool shift, bool alt) { diff --git a/src/PBAnaly/UI/AnalyzeDataForm.Designer.cs b/src/PBAnaly/UI/AnalyzeDataForm.Designer.cs index 0b138ea..7b781c5 100644 --- a/src/PBAnaly/UI/AnalyzeDataForm.Designer.cs +++ b/src/PBAnaly/UI/AnalyzeDataForm.Designer.cs @@ -65,7 +65,7 @@ this.文件ToolStripMenuItem1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(63)))), ((int)(((byte)(65))))); this.文件ToolStripMenuItem1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); this.文件ToolStripMenuItem1.Name = "文件ToolStripMenuItem1"; - this.文件ToolStripMenuItem1.Size = new System.Drawing.Size(53, 21); + this.文件ToolStripMenuItem1.Size = new System.Drawing.Size(44, 21); this.文件ToolStripMenuItem1.Text = "文件"; // // 选项ToolStripMenuItem1 @@ -73,7 +73,7 @@ this.选项ToolStripMenuItem1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(63)))), ((int)(((byte)(65))))); this.选项ToolStripMenuItem1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); this.选项ToolStripMenuItem1.Name = "选项ToolStripMenuItem1"; - this.选项ToolStripMenuItem1.Size = new System.Drawing.Size(53, 21); + this.选项ToolStripMenuItem1.Size = new System.Drawing.Size(44, 21); this.选项ToolStripMenuItem1.Text = "选项"; // // crownMenuStrip1 @@ -101,10 +101,10 @@ this.metroPanel1.Controls.Add(this.crownLabel1); this.metroPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.metroPanel1.IsDerivedStyle = true; - this.metroPanel1.Location = new System.Drawing.Point(0, 31); + this.metroPanel1.Location = new System.Drawing.Point(0, 25); this.metroPanel1.Margin = new System.Windows.Forms.Padding(0); this.metroPanel1.Name = "metroPanel1"; - this.metroPanel1.Size = new System.Drawing.Size(1577, 36); + this.metroPanel1.Size = new System.Drawing.Size(1223, 29); this.metroPanel1.Style = ReaLTaiizor.Enum.Metro.Style.Custom; this.metroPanel1.StyleManager = null; this.metroPanel1.TabIndex = 3; @@ -115,10 +115,9 @@ // this.crownLabel1.AutoSize = true; this.crownLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); - this.crownLabel1.Location = new System.Drawing.Point(4, 11); - this.crownLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.crownLabel1.Location = new System.Drawing.Point(3, 9); this.crownLabel1.Name = "crownLabel1"; - this.crownLabel1.Size = new System.Drawing.Size(37, 15); + this.crownLabel1.Size = new System.Drawing.Size(29, 12); this.crownLabel1.TabIndex = 0; this.crownLabel1.Text = "显示"; // @@ -130,14 +129,13 @@ this.tableLayoutPanel1.Controls.Add(this.metroPanel1, 0, 1); this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 2); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 30); - this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 24); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(1577, 1169); + this.tableLayoutPanel1.Size = new System.Drawing.Size(1223, 905); this.tableLayoutPanel1.TabIndex = 3; // // panel1 @@ -147,11 +145,10 @@ this.panel1.Controls.Add(this.dataGridView1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.EdgeColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(41)))), ((int)(((byte)(50))))); - this.panel1.Location = new System.Drawing.Point(4, 71); - this.panel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.panel1.Location = new System.Drawing.Point(3, 57); this.panel1.Name = "panel1"; - this.panel1.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6); - this.panel1.Size = new System.Drawing.Size(1569, 1094); + this.panel1.Padding = new System.Windows.Forms.Padding(5, 5, 5, 5); + this.panel1.Size = new System.Drawing.Size(1217, 845); this.panel1.SmoothingType = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.panel1.TabIndex = 4; this.panel1.Text = "panel1"; @@ -160,26 +157,24 @@ // this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridView1.Location = new System.Drawing.Point(7, 6); - this.dataGridView1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); + this.dataGridView1.Location = new System.Drawing.Point(5, 5); this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.RowHeadersWidth = 51; this.dataGridView1.RowTemplate.Height = 23; - this.dataGridView1.Size = new System.Drawing.Size(1555, 1082); + this.dataGridView1.Size = new System.Drawing.Size(1207, 835); this.dataGridView1.TabIndex = 0; // // AnalyzeDataForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1585, 1203); + this.ClientSize = new System.Drawing.Size(1229, 932); this.Controls.Add(this.tableLayoutPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.FormStyle = MaterialSkin.Controls.MaterialForm.FormStyles.ActionBar_None; this.MainMenuStrip = this.miniToolStrip; - this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.Name = "AnalyzeDataForm"; - this.Padding = new System.Windows.Forms.Padding(4, 30, 4, 4); + this.Padding = new System.Windows.Forms.Padding(3, 24, 3, 3); this.Text = "AnalyzeDataForm"; this.crownMenuStrip1.ResumeLayout(false); this.crownMenuStrip1.PerformLayout(); diff --git a/src/PBAnaly/UI/LanesImagePaletteForm.Designer.cs b/src/PBAnaly/UI/LanesImagePaletteForm.Designer.cs index d63db06..2e1f910 100644 --- a/src/PBAnaly/UI/LanesImagePaletteForm.Designer.cs +++ b/src/PBAnaly/UI/LanesImagePaletteForm.Designer.cs @@ -31,24 +31,24 @@ this.collapse1 = new AntdUI.Collapse(); this.clasi_lanes = new AntdUI.CollapseItem(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.clasi_init = new AntdUI.CollapseItem(); - this.materialButton1 = new MaterialSkin.Controls.MaterialButton(); - this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); - this.materialCheckbox1 = new MaterialSkin.Controls.MaterialCheckbox(); + this.mb_findLanes = new MaterialSkin.Controls.MaterialButton(); this.materialButton2 = new MaterialSkin.Controls.MaterialButton(); this.materialButton3 = new MaterialSkin.Controls.MaterialButton(); this.materialButton4 = new MaterialSkin.Controls.MaterialButton(); + this.panel1 = new AntdUI.Panel(); + this.label1 = new AntdUI.Label(); + this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); + this.checkbox1 = new AntdUI.Checkbox(); + this.clasi_init = new AntdUI.CollapseItem(); + this.materialCheckbox1 = new MaterialSkin.Controls.MaterialCheckbox(); this.clasi_strips = new AntdUI.CollapseItem(); this.clasi_conformity = new AntdUI.CollapseItem(); - this.panel1 = new AntdUI.Panel(); - this.checkbox1 = new AntdUI.Checkbox(); - this.label1 = new AntdUI.Label(); this.collapse1.SuspendLayout(); this.clasi_lanes.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); - this.clasi_init.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); + this.clasi_init.SuspendLayout(); this.SuspendLayout(); // // collapse1 @@ -65,8 +65,9 @@ this.collapse1.Items.Add(this.clasi_strips); this.collapse1.Items.Add(this.clasi_conformity); this.collapse1.Location = new System.Drawing.Point(0, 0); + this.collapse1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.collapse1.Name = "collapse1"; - this.collapse1.Size = new System.Drawing.Size(405, 619); + this.collapse1.Size = new System.Drawing.Size(304, 495); this.collapse1.TabIndex = 0; this.collapse1.Text = "collapse1"; // @@ -74,90 +75,59 @@ // this.clasi_lanes.Controls.Add(this.tableLayoutPanel1); this.clasi_lanes.Expand = true; - this.clasi_lanes.Location = new System.Drawing.Point(23, 72); + this.clasi_lanes.Location = new System.Drawing.Point(18, 58); + this.clasi_lanes.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.clasi_lanes.Name = "clasi_lanes"; - this.clasi_lanes.Size = new System.Drawing.Size(359, 219); + this.clasi_lanes.Size = new System.Drawing.Size(268, 175); this.clasi_lanes.TabIndex = 0; this.clasi_lanes.Text = "泳道"; // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 6; - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 82F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 72F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 15F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 10F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 30F)); - this.tableLayoutPanel1.Controls.Add(this.materialButton1, 0, 0); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 54F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 11F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 8F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 22F)); + this.tableLayoutPanel1.Controls.Add(this.mb_findLanes, 0, 0); this.tableLayoutPanel1.Controls.Add(this.materialButton2, 0, 1); this.tableLayoutPanel1.Controls.Add(this.materialButton3, 0, 2); this.tableLayoutPanel1.Controls.Add(this.materialButton4, 0, 3); this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 0); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 5; - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(359, 219); + this.tableLayoutPanel1.Size = new System.Drawing.Size(268, 175); this.tableLayoutPanel1.TabIndex = 0; // - // clasi_init + // mb_findLanes // - this.clasi_init.Controls.Add(this.materialCheckbox1); - this.clasi_init.Expand = true; - this.clasi_init.Location = new System.Drawing.Point(23, 380); - this.clasi_init.Name = "clasi_init"; - this.clasi_init.Size = new System.Drawing.Size(359, 202); - this.clasi_init.TabIndex = 1; - this.clasi_init.Text = "初始井"; - // - // materialButton1 - // - this.materialButton1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.materialButton1.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; - this.materialButton1.Depth = 0; - this.materialButton1.Dock = System.Windows.Forms.DockStyle.Fill; - this.materialButton1.HighEmphasis = true; - this.materialButton1.Icon = null; - this.materialButton1.Location = new System.Drawing.Point(4, 6); - this.materialButton1.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); - this.materialButton1.MouseState = MaterialSkin.MouseState.HOVER; - this.materialButton1.Name = "materialButton1"; - this.materialButton1.NoAccentTextColor = System.Drawing.Color.Empty; - this.materialButton1.Size = new System.Drawing.Size(102, 33); - this.materialButton1.TabIndex = 0; - this.materialButton1.Text = "查找泳道"; - this.materialButton1.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; - this.materialButton1.UseAccentColor = false; - this.materialButton1.UseVisualStyleBackColor = true; - // - // numericUpDown1 - // - this.numericUpDown1.Location = new System.Drawing.Point(108, 85); - this.numericUpDown1.Name = "numericUpDown1"; - this.numericUpDown1.Size = new System.Drawing.Size(76, 25); - this.numericUpDown1.TabIndex = 6; - // - // materialCheckbox1 - // - this.materialCheckbox1.AutoSize = true; - this.materialCheckbox1.Depth = 0; - this.materialCheckbox1.Location = new System.Drawing.Point(160, 39); - this.materialCheckbox1.Margin = new System.Windows.Forms.Padding(0); - this.materialCheckbox1.MouseLocation = new System.Drawing.Point(-1, -1); - this.materialCheckbox1.MouseState = MaterialSkin.MouseState.HOVER; - this.materialCheckbox1.Name = "materialCheckbox1"; - this.materialCheckbox1.ReadOnly = false; - this.materialCheckbox1.Ripple = true; - this.materialCheckbox1.Size = new System.Drawing.Size(131, 37); - this.materialCheckbox1.TabIndex = 4; - this.materialCheckbox1.Text = "统一泳道宽度"; - this.materialCheckbox1.UseVisualStyleBackColor = true; + this.mb_findLanes.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.mb_findLanes.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; + this.mb_findLanes.Depth = 0; + this.mb_findLanes.Dock = System.Windows.Forms.DockStyle.Fill; + this.mb_findLanes.HighEmphasis = true; + this.mb_findLanes.Icon = null; + this.mb_findLanes.Location = new System.Drawing.Point(3, 5); + this.mb_findLanes.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + this.mb_findLanes.MouseState = MaterialSkin.MouseState.HOVER; + this.mb_findLanes.Name = "mb_findLanes"; + this.mb_findLanes.NoAccentTextColor = System.Drawing.Color.Empty; + this.mb_findLanes.Size = new System.Drawing.Size(76, 26); + this.mb_findLanes.TabIndex = 0; + this.mb_findLanes.Text = "查找泳道"; + this.mb_findLanes.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.mb_findLanes.UseAccentColor = false; + this.mb_findLanes.UseVisualStyleBackColor = true; // // materialButton2 // @@ -167,12 +137,12 @@ this.materialButton2.Dock = System.Windows.Forms.DockStyle.Fill; this.materialButton2.HighEmphasis = true; this.materialButton2.Icon = null; - this.materialButton2.Location = new System.Drawing.Point(4, 51); - this.materialButton2.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.materialButton2.Location = new System.Drawing.Point(3, 41); + this.materialButton2.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); this.materialButton2.MouseState = MaterialSkin.MouseState.HOVER; this.materialButton2.Name = "materialButton2"; this.materialButton2.NoAccentTextColor = System.Drawing.Color.Empty; - this.materialButton2.Size = new System.Drawing.Size(102, 33); + this.materialButton2.Size = new System.Drawing.Size(76, 26); this.materialButton2.TabIndex = 1; this.materialButton2.Text = "添加泳道"; this.materialButton2.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; @@ -187,12 +157,12 @@ this.materialButton3.Dock = System.Windows.Forms.DockStyle.Fill; this.materialButton3.HighEmphasis = true; this.materialButton3.Icon = null; - this.materialButton3.Location = new System.Drawing.Point(4, 96); - this.materialButton3.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.materialButton3.Location = new System.Drawing.Point(3, 77); + this.materialButton3.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); this.materialButton3.MouseState = MaterialSkin.MouseState.HOVER; this.materialButton3.Name = "materialButton3"; this.materialButton3.NoAccentTextColor = System.Drawing.Color.Empty; - this.materialButton3.Size = new System.Drawing.Size(102, 33); + this.materialButton3.Size = new System.Drawing.Size(76, 26); this.materialButton3.TabIndex = 2; this.materialButton3.Text = "删除泳道"; this.materialButton3.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; @@ -207,34 +177,18 @@ this.materialButton4.Dock = System.Windows.Forms.DockStyle.Fill; this.materialButton4.HighEmphasis = true; this.materialButton4.Icon = null; - this.materialButton4.Location = new System.Drawing.Point(4, 141); - this.materialButton4.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.materialButton4.Location = new System.Drawing.Point(3, 113); + this.materialButton4.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); this.materialButton4.MouseState = MaterialSkin.MouseState.HOVER; this.materialButton4.Name = "materialButton4"; this.materialButton4.NoAccentTextColor = System.Drawing.Color.Empty; - this.materialButton4.Size = new System.Drawing.Size(102, 33); + this.materialButton4.Size = new System.Drawing.Size(76, 26); this.materialButton4.TabIndex = 3; this.materialButton4.Text = "弯曲泳道"; this.materialButton4.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; this.materialButton4.UseAccentColor = false; this.materialButton4.UseVisualStyleBackColor = true; // - // clasi_strips - // - this.clasi_strips.Location = new System.Drawing.Point(-100, -60); - this.clasi_strips.Name = "clasi_strips"; - this.clasi_strips.Size = new System.Drawing.Size(100, 60); - this.clasi_strips.TabIndex = 2; - this.clasi_strips.Text = "条带"; - // - // clasi_conformity - // - this.clasi_conformity.Location = new System.Drawing.Point(-100, -60); - this.clasi_conformity.Name = "clasi_conformity"; - this.clasi_conformity.Size = new System.Drawing.Size(100, 60); - this.clasi_conformity.TabIndex = 3; - this.clasi_conformity.Text = "整合"; - // // panel1 // this.tableLayoutPanel1.SetColumnSpan(this.panel1, 4); @@ -242,49 +196,105 @@ this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.checkbox1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(113, 3); + this.panel1.Location = new System.Drawing.Point(84, 2); + this.panel1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.panel1.Name = "panel1"; this.tableLayoutPanel1.SetRowSpan(this.panel1, 4); - this.panel1.Size = new System.Drawing.Size(213, 174); + this.panel1.Size = new System.Drawing.Size(160, 140); this.panel1.TabIndex = 4; this.panel1.Text = "panel1"; // - // checkbox1 - // - this.checkbox1.AutoCheck = true; - this.checkbox1.Location = new System.Drawing.Point(3, 48); - this.checkbox1.Name = "checkbox1"; - this.checkbox1.Size = new System.Drawing.Size(141, 23); - this.checkbox1.TabIndex = 0; - this.checkbox1.Text = "统一泳道宽度"; - // // label1 // this.label1.Font = new System.Drawing.Font("宋体", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label1.Location = new System.Drawing.Point(3, 79); + this.label1.Location = new System.Drawing.Point(2, 40); + this.label1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(99, 31); + this.label1.Size = new System.Drawing.Size(114, 25); this.label1.TabIndex = 7; this.label1.Text = "泳道宽度(像素)"; // + // numericUpDown1 + // + this.numericUpDown1.Location = new System.Drawing.Point(2, 69); + this.numericUpDown1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.numericUpDown1.Name = "numericUpDown1"; + this.numericUpDown1.Size = new System.Drawing.Size(57, 21); + this.numericUpDown1.TabIndex = 6; + // + // checkbox1 + // + this.checkbox1.AutoCheck = true; + this.checkbox1.Location = new System.Drawing.Point(2, 11); + this.checkbox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.checkbox1.Name = "checkbox1"; + this.checkbox1.Size = new System.Drawing.Size(106, 18); + this.checkbox1.TabIndex = 0; + this.checkbox1.Text = "统一泳道宽度"; + // + // clasi_init + // + this.clasi_init.Controls.Add(this.materialCheckbox1); + this.clasi_init.Expand = true; + this.clasi_init.Location = new System.Drawing.Point(18, 305); + this.clasi_init.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.clasi_init.Name = "clasi_init"; + this.clasi_init.Size = new System.Drawing.Size(268, 162); + this.clasi_init.TabIndex = 1; + this.clasi_init.Text = "初始井"; + // + // materialCheckbox1 + // + this.materialCheckbox1.AutoSize = true; + this.materialCheckbox1.Depth = 0; + this.materialCheckbox1.Location = new System.Drawing.Point(120, 31); + this.materialCheckbox1.Margin = new System.Windows.Forms.Padding(0); + this.materialCheckbox1.MouseLocation = new System.Drawing.Point(-1, -1); + this.materialCheckbox1.MouseState = MaterialSkin.MouseState.HOVER; + this.materialCheckbox1.Name = "materialCheckbox1"; + this.materialCheckbox1.ReadOnly = false; + this.materialCheckbox1.Ripple = true; + this.materialCheckbox1.Size = new System.Drawing.Size(131, 37); + this.materialCheckbox1.TabIndex = 4; + this.materialCheckbox1.Text = "统一泳道宽度"; + this.materialCheckbox1.UseVisualStyleBackColor = true; + // + // clasi_strips + // + this.clasi_strips.Location = new System.Drawing.Point(-75, -48); + this.clasi_strips.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.clasi_strips.Name = "clasi_strips"; + this.clasi_strips.Size = new System.Drawing.Size(75, 48); + this.clasi_strips.TabIndex = 2; + this.clasi_strips.Text = "条带"; + // + // clasi_conformity + // + this.clasi_conformity.Location = new System.Drawing.Point(-75, -48); + this.clasi_conformity.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.clasi_conformity.Name = "clasi_conformity"; + this.clasi_conformity.Size = new System.Drawing.Size(75, 48); + this.clasi_conformity.TabIndex = 3; + this.clasi_conformity.Text = "整合"; + // // LanesImagePaletteForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(405, 619); + this.ClientSize = new System.Drawing.Size(304, 495); this.Controls.Add(this.collapse1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Name = "LanesImagePaletteForm"; this.Text = "BioanayImagePaletteForm"; this.collapse1.ResumeLayout(false); this.clasi_lanes.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); + this.panel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.clasi_init.ResumeLayout(false); this.clasi_init.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); - this.panel1.ResumeLayout(false); this.ResumeLayout(false); } @@ -299,12 +309,12 @@ private MaterialSkin.Controls.MaterialButton materialButton4; private MaterialSkin.Controls.MaterialButton materialButton3; private MaterialSkin.Controls.MaterialButton materialButton2; - private MaterialSkin.Controls.MaterialButton materialButton1; private System.Windows.Forms.NumericUpDown numericUpDown1; private MaterialSkin.Controls.MaterialCheckbox materialCheckbox1; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private AntdUI.Panel panel1; private AntdUI.Checkbox checkbox1; private AntdUI.Label label1; + public MaterialSkin.Controls.MaterialButton mb_findLanes; } } \ No newline at end of file