|
@@ -28,6 +28,10 @@
|
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
+ System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
|
|
+ System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
|
|
|
+ System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
|
|
|
+ System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title();
|
|
|
this.tbGrayStart = new System.Windows.Forms.TrackBar();
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
this.nuDownGrayStart = new System.Windows.Forms.NumericUpDown();
|
|
@@ -36,21 +40,23 @@
|
|
|
this.btnYes = new System.Windows.Forms.Button();
|
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
|
this.tbGrayEnd = new System.Windows.Forms.TrackBar();
|
|
|
- this.txtGrayStart = new System.Windows.Forms.TextBox();
|
|
|
- this.txtGrayEnd = new System.Windows.Forms.TextBox();
|
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
|
+ this.panel1 = new System.Windows.Forms.Panel();
|
|
|
+ this.myChart1 = new System.Windows.Forms.DataVisualization.Charting.Chart();
|
|
|
this.pbBSEImage = new System.Windows.Forms.PictureBox();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.tbGrayStart)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nuDownGrayStart)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nuDownGrayEnd)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.tbGrayEnd)).BeginInit();
|
|
|
this.groupBox1.SuspendLayout();
|
|
|
+ this.panel1.SuspendLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.myChart1)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pbBSEImage)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
// tbGrayStart
|
|
|
//
|
|
|
- this.tbGrayStart.Location = new System.Drawing.Point(263, 52);
|
|
|
+ this.tbGrayStart.Location = new System.Drawing.Point(808, 72);
|
|
|
this.tbGrayStart.Maximum = 255;
|
|
|
this.tbGrayStart.Name = "tbGrayStart";
|
|
|
this.tbGrayStart.Size = new System.Drawing.Size(97, 45);
|
|
@@ -61,7 +67,7 @@
|
|
|
// label1
|
|
|
//
|
|
|
this.label1.AutoSize = true;
|
|
|
- this.label1.Location = new System.Drawing.Point(11, 33);
|
|
|
+ this.label1.Location = new System.Drawing.Point(861, 17);
|
|
|
this.label1.Name = "label1";
|
|
|
this.label1.Size = new System.Drawing.Size(77, 12);
|
|
|
this.label1.TabIndex = 6;
|
|
@@ -69,7 +75,7 @@
|
|
|
//
|
|
|
// nuDownGrayStart
|
|
|
//
|
|
|
- this.nuDownGrayStart.Location = new System.Drawing.Point(110, 31);
|
|
|
+ this.nuDownGrayStart.Location = new System.Drawing.Point(821, 45);
|
|
|
this.nuDownGrayStart.Maximum = new decimal(new int[] {
|
|
|
255,
|
|
|
0,
|
|
@@ -82,7 +88,7 @@
|
|
|
//
|
|
|
// nuDownGrayEnd
|
|
|
//
|
|
|
- this.nuDownGrayEnd.Location = new System.Drawing.Point(193, 31);
|
|
|
+ this.nuDownGrayEnd.Location = new System.Drawing.Point(921, 45);
|
|
|
this.nuDownGrayEnd.Maximum = new decimal(new int[] {
|
|
|
255,
|
|
|
0,
|
|
@@ -96,7 +102,7 @@
|
|
|
// label2
|
|
|
//
|
|
|
this.label2.AutoSize = true;
|
|
|
- this.label2.Location = new System.Drawing.Point(180, 35);
|
|
|
+ this.label2.Location = new System.Drawing.Point(904, 47);
|
|
|
this.label2.Name = "label2";
|
|
|
this.label2.Size = new System.Drawing.Size(11, 12);
|
|
|
this.label2.TabIndex = 9;
|
|
@@ -105,9 +111,9 @@
|
|
|
// btnYes
|
|
|
//
|
|
|
this.btnYes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
- this.btnYes.Location = new System.Drawing.Point(846, 16);
|
|
|
+ this.btnYes.Location = new System.Drawing.Point(821, 111);
|
|
|
this.btnYes.Name = "btnYes";
|
|
|
- this.btnYes.Size = new System.Drawing.Size(75, 51);
|
|
|
+ this.btnYes.Size = new System.Drawing.Size(75, 30);
|
|
|
this.btnYes.TabIndex = 10;
|
|
|
this.btnYes.Text = "确认";
|
|
|
this.btnYes.UseVisualStyleBackColor = true;
|
|
@@ -116,9 +122,9 @@
|
|
|
// btnCancel
|
|
|
//
|
|
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
|
- this.btnCancel.Location = new System.Drawing.Point(927, 16);
|
|
|
+ this.btnCancel.Location = new System.Drawing.Point(921, 111);
|
|
|
this.btnCancel.Name = "btnCancel";
|
|
|
- this.btnCancel.Size = new System.Drawing.Size(75, 51);
|
|
|
+ this.btnCancel.Size = new System.Drawing.Size(75, 30);
|
|
|
this.btnCancel.TabIndex = 10;
|
|
|
this.btnCancel.Text = "取消";
|
|
|
this.btnCancel.UseVisualStyleBackColor = true;
|
|
@@ -126,7 +132,7 @@
|
|
|
//
|
|
|
// tbGrayEnd
|
|
|
//
|
|
|
- this.tbGrayEnd.Location = new System.Drawing.Point(355, 52);
|
|
|
+ this.tbGrayEnd.Location = new System.Drawing.Point(911, 72);
|
|
|
this.tbGrayEnd.Maximum = 255;
|
|
|
this.tbGrayEnd.Name = "tbGrayEnd";
|
|
|
this.tbGrayEnd.Size = new System.Drawing.Size(97, 45);
|
|
@@ -134,27 +140,9 @@
|
|
|
this.tbGrayEnd.TickStyle = System.Windows.Forms.TickStyle.None;
|
|
|
this.tbGrayEnd.Scroll += new System.EventHandler(this.tbGrayEnd_Scroll);
|
|
|
//
|
|
|
- // txtGrayStart
|
|
|
- //
|
|
|
- this.txtGrayStart.Location = new System.Drawing.Point(272, 31);
|
|
|
- this.txtGrayStart.Name = "txtGrayStart";
|
|
|
- this.txtGrayStart.ReadOnly = true;
|
|
|
- this.txtGrayStart.Size = new System.Drawing.Size(80, 21);
|
|
|
- this.txtGrayStart.TabIndex = 12;
|
|
|
- //
|
|
|
- // txtGrayEnd
|
|
|
- //
|
|
|
- this.txtGrayEnd.Location = new System.Drawing.Point(364, 31);
|
|
|
- this.txtGrayEnd.Name = "txtGrayEnd";
|
|
|
- this.txtGrayEnd.ReadOnly = true;
|
|
|
- this.txtGrayEnd.Size = new System.Drawing.Size(80, 21);
|
|
|
- this.txtGrayEnd.TabIndex = 13;
|
|
|
- //
|
|
|
// groupBox1
|
|
|
//
|
|
|
- this.groupBox1.Controls.Add(this.txtGrayEnd);
|
|
|
- this.groupBox1.Controls.Add(this.txtGrayStart);
|
|
|
- this.groupBox1.Controls.Add(this.tbGrayEnd);
|
|
|
+ this.groupBox1.Controls.Add(this.panel1);
|
|
|
this.groupBox1.Controls.Add(this.btnCancel);
|
|
|
this.groupBox1.Controls.Add(this.btnYes);
|
|
|
this.groupBox1.Controls.Add(this.label2);
|
|
@@ -162,20 +150,62 @@
|
|
|
this.groupBox1.Controls.Add(this.nuDownGrayStart);
|
|
|
this.groupBox1.Controls.Add(this.label1);
|
|
|
this.groupBox1.Controls.Add(this.tbGrayStart);
|
|
|
+ this.groupBox1.Controls.Add(this.tbGrayEnd);
|
|
|
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
|
|
- this.groupBox1.Location = new System.Drawing.Point(0, 624);
|
|
|
+ this.groupBox1.Location = new System.Drawing.Point(0, 535);
|
|
|
this.groupBox1.Name = "groupBox1";
|
|
|
- this.groupBox1.Size = new System.Drawing.Size(1008, 73);
|
|
|
+ this.groupBox1.Size = new System.Drawing.Size(1008, 162);
|
|
|
this.groupBox1.TabIndex = 5;
|
|
|
this.groupBox1.TabStop = false;
|
|
|
this.groupBox1.Text = "设置参数";
|
|
|
//
|
|
|
+ // panel1
|
|
|
+ //
|
|
|
+ this.panel1.Controls.Add(this.myChart1);
|
|
|
+ this.panel1.Location = new System.Drawing.Point(6, 20);
|
|
|
+ this.panel1.Name = "panel1";
|
|
|
+ this.panel1.Size = new System.Drawing.Size(796, 130);
|
|
|
+ this.panel1.TabIndex = 14;
|
|
|
+ //
|
|
|
+ // myChart1
|
|
|
+ //
|
|
|
+ chartArea1.AlignmentStyle = System.Windows.Forms.DataVisualization.Charting.AreaAlignmentStyles.None;
|
|
|
+ chartArea1.Area3DStyle.Inclination = 0;
|
|
|
+ chartArea1.Area3DStyle.IsClustered = true;
|
|
|
+ chartArea1.Area3DStyle.IsRightAngleAxes = false;
|
|
|
+ chartArea1.Area3DStyle.LightStyle = System.Windows.Forms.DataVisualization.Charting.LightStyle.Realistic;
|
|
|
+ chartArea1.Area3DStyle.Perspective = 5;
|
|
|
+ chartArea1.Area3DStyle.Rotation = 0;
|
|
|
+ chartArea1.Area3DStyle.WallWidth = 10;
|
|
|
+ chartArea1.Name = "ChartArea1";
|
|
|
+ this.myChart1.ChartAreas.Add(chartArea1);
|
|
|
+ this.myChart1.Cursor = System.Windows.Forms.Cursors.Arrow;
|
|
|
+ this.myChart1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
+ legend1.Name = "Legend1";
|
|
|
+ this.myChart1.Legends.Add(legend1);
|
|
|
+ this.myChart1.Location = new System.Drawing.Point(0, 0);
|
|
|
+ this.myChart1.Margin = new System.Windows.Forms.Padding(2);
|
|
|
+ this.myChart1.Name = "myChart1";
|
|
|
+ this.myChart1.Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.EarthTones;
|
|
|
+ series1.ChartArea = "ChartArea1";
|
|
|
+ series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Area;
|
|
|
+ series1.Legend = "Legend1";
|
|
|
+ series1.Name = "Series1";
|
|
|
+ this.myChart1.Series.Add(series1);
|
|
|
+ this.myChart1.Size = new System.Drawing.Size(796, 130);
|
|
|
+ this.myChart1.TabIndex = 7;
|
|
|
+ this.myChart1.Text = "chart1";
|
|
|
+ this.myChart1.TextAntiAliasingQuality = System.Windows.Forms.DataVisualization.Charting.TextAntiAliasingQuality.Normal;
|
|
|
+ title1.Name = "Title1";
|
|
|
+ title1.Text = "---";
|
|
|
+ this.myChart1.Titles.Add(title1);
|
|
|
+ //
|
|
|
// pbBSEImage
|
|
|
//
|
|
|
this.pbBSEImage.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
this.pbBSEImage.Location = new System.Drawing.Point(0, 0);
|
|
|
this.pbBSEImage.Name = "pbBSEImage";
|
|
|
- this.pbBSEImage.Size = new System.Drawing.Size(1008, 624);
|
|
|
+ this.pbBSEImage.Size = new System.Drawing.Size(1008, 535);
|
|
|
this.pbBSEImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
|
|
this.pbBSEImage.TabIndex = 6;
|
|
|
this.pbBSEImage.TabStop = false;
|
|
@@ -187,7 +217,7 @@
|
|
|
this.ClientSize = new System.Drawing.Size(1008, 697);
|
|
|
this.Controls.Add(this.pbBSEImage);
|
|
|
this.Controls.Add(this.groupBox1);
|
|
|
- this.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ this.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.Name = "ToolWindow";
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
|
this.Text = "设置BSE图背景灰度范围";
|
|
@@ -198,6 +228,8 @@
|
|
|
((System.ComponentModel.ISupportInitialize)(this.tbGrayEnd)).EndInit();
|
|
|
this.groupBox1.ResumeLayout(false);
|
|
|
this.groupBox1.PerformLayout();
|
|
|
+ this.panel1.ResumeLayout(false);
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.myChart1)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pbBSEImage)).EndInit();
|
|
|
this.ResumeLayout(false);
|
|
|
|
|
@@ -212,9 +244,9 @@
|
|
|
private System.Windows.Forms.Button btnYes;
|
|
|
private System.Windows.Forms.Button btnCancel;
|
|
|
private System.Windows.Forms.TrackBar tbGrayEnd;
|
|
|
- private System.Windows.Forms.TextBox txtGrayStart;
|
|
|
- private System.Windows.Forms.TextBox txtGrayEnd;
|
|
|
private System.Windows.Forms.GroupBox groupBox1;
|
|
|
private System.Windows.Forms.PictureBox pbBSEImage;
|
|
|
+ private System.Windows.Forms.Panel panel1;
|
|
|
+ private System.Windows.Forms.DataVisualization.Charting.Chart myChart1;
|
|
|
}
|
|
|
}
|