Commit 9d204c24 LN

1

1 个父辈 aa6345ce
...@@ -166,7 +166,7 @@ namespace AccAOI ...@@ -166,7 +166,7 @@ namespace AccAOI
this.imageBox1.DragHandleSize = 9; this.imageBox1.DragHandleSize = 9;
this.imageBox1.Location = new System.Drawing.Point(625, 40); this.imageBox1.Location = new System.Drawing.Point(625, 40);
this.imageBox1.Name = "imageBox1"; this.imageBox1.Name = "imageBox1";
this.imageBox1.SelectionMode = Acc.ImageBox.ImageBoxSelectionMode.Eclipse; this.imageBox1.SelectionMode = Acc.ImageBox.ImageBoxSelectionMode.Rectangle;
this.imageBox1.Size = new System.Drawing.Size(637, 592); this.imageBox1.Size = new System.Drawing.Size(637, 592);
this.imageBox1.TabIndex = 4; this.imageBox1.TabIndex = 4;
this.imageBox1.SelectionRegionChanged += new System.EventHandler(this.imageBox1_SelectionRegionChanged); this.imageBox1.SelectionRegionChanged += new System.EventHandler(this.imageBox1_SelectionRegionChanged);
......
...@@ -37,10 +37,10 @@ namespace AccAOI.control ...@@ -37,10 +37,10 @@ namespace AccAOI.control
this.panResult = new Asa.Theme.FlatPanel(); this.panResult = new Asa.Theme.FlatPanel();
this.panParam = new Asa.Theme.FlatPanel(); this.panParam = new Asa.Theme.FlatPanel();
this.panAreaSet = new Asa.Theme.FlatPanel(); this.panAreaSet = new Asa.Theme.FlatPanel();
this.btnImgType = new Asa.Theme.FlatButton();
this.panAreaImage = new Asa.Theme.FlatPanel(); this.panAreaImage = new Asa.Theme.FlatPanel();
this.panControl = new Asa.Theme.FlatPanel(); this.panControl = new Asa.Theme.FlatPanel();
this.btnImgType = new Asa.Theme.FlatButton(); this.aoiImage = new Acc.ImageBox.ImageBox();
this.aoiImage = new ImageBox();
this.panAreaSet.SuspendLayout(); this.panAreaSet.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
...@@ -53,7 +53,7 @@ namespace AccAOI.control ...@@ -53,7 +53,7 @@ namespace AccAOI.control
this.btnSetArea.Size = new System.Drawing.Size(90, 30); this.btnSetArea.Size = new System.Drawing.Size(90, 30);
this.btnSetArea.StateColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); this.btnSetArea.StateColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.btnSetArea.TabIndex = 7; this.btnSetArea.TabIndex = 7;
this.btnSetArea.Text = "矩形"; this.btnSetArea.Text = "椭圆";
this.btnSetArea.Click += new System.EventHandler(this.btnSetArea_Click); this.btnSetArea.Click += new System.EventHandler(this.btnSetArea_Click);
// //
// btnClearArea // btnClearArea
...@@ -107,6 +107,18 @@ namespace AccAOI.control ...@@ -107,6 +107,18 @@ namespace AccAOI.control
this.panAreaSet.TabIndex = 3; this.panAreaSet.TabIndex = 3;
this.panAreaSet.Text = "区域设置-矩形"; this.panAreaSet.Text = "区域设置-矩形";
// //
// btnImgType
//
this.btnImgType.ImageSize = new System.Drawing.Size(0, 0);
this.btnImgType.Inside = false;
this.btnImgType.Location = new System.Drawing.Point(9, 30);
this.btnImgType.Name = "btnImgType";
this.btnImgType.Size = new System.Drawing.Size(90, 30);
this.btnImgType.StateColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.btnImgType.TabIndex = 8;
this.btnImgType.Text = "原图";
this.btnImgType.Click += new System.EventHandler(this.btnImgType_Click);
//
// panAreaImage // panAreaImage
// //
this.panAreaImage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.panAreaImage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
...@@ -132,18 +144,6 @@ namespace AccAOI.control ...@@ -132,18 +144,6 @@ namespace AccAOI.control
this.panControl.TabIndex = 0; this.panControl.TabIndex = 0;
this.panControl.Text = "斑点分析"; this.panControl.Text = "斑点分析";
// //
// btnImgType
//
this.btnImgType.ImageSize = new System.Drawing.Size(0, 0);
this.btnImgType.Inside = false;
this.btnImgType.Location = new System.Drawing.Point(9, 30);
this.btnImgType.Name = "btnImgType";
this.btnImgType.Size = new System.Drawing.Size(90, 30);
this.btnImgType.StateColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.btnImgType.TabIndex = 8;
this.btnImgType.Text = "原图";
this.btnImgType.Click += new System.EventHandler(this.btnImgType_Click);
//
// aoiImage // aoiImage
// //
this.aoiImage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.aoiImage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
......
...@@ -44,7 +44,7 @@ namespace AccAOI.control ...@@ -44,7 +44,7 @@ namespace AccAOI.control
/// </summary> /// </summary>
protected GraphicsPath currPath = null; protected GraphicsPath currPath = null;
public ImageBox BImageBox; public AccImageBox BImageBox;
public AoiMethod AoiInfo; public AoiMethod AoiInfo;
/// <summary> /// <summary>
/// 未处理的小图 /// 未处理的小图
...@@ -75,15 +75,22 @@ namespace AccAOI.control ...@@ -75,15 +75,22 @@ namespace AccAOI.control
private void btnSetArea_Click(object sender, EventArgs e) private void btnSetArea_Click(object sender, EventArgs e)
{ {
AreaType = 1; if (AreaType.Equals(1))
panAreaSet.Text = "区域设置 - 矩形"; {
} AreaType = 2;
panAreaSet.Text = "区域设置 - 椭圆";
private void btnYuan_Click(object sender, EventArgs e) btnSetArea.Text = "矩形";
{ BImageBox.SelectionMode = ImageBoxSelectionMode.Eclipse;
AreaType = 2; }
panAreaSet.Text = "区域设置 - 椭圆"; else
{
AreaType = 1;
panAreaSet.Text = "区域设置 - 矩形";
btnSetArea.Text = "椭圆";
BImageBox.SelectionMode = ImageBoxSelectionMode.Rectangle;
}
} }
private void btnClearArea_Click(object sender, EventArgs e) private void btnClearArea_Click(object sender, EventArgs e)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!