Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
AccAOI
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1c38d4d4
由
LN
编写于
2019-06-20 11:13:49 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
a0714c27
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
36 行增加
和
29 行删除
AOI/AoiProject.cs
AccAOI/FrmAoiSetting.cs
AccAOI/control/AoiRgbControl.Designer.cs
AOI/AoiProject.cs
查看文件 @
1c38d4d
...
@@ -63,7 +63,7 @@ namespace AOI
...
@@ -63,7 +63,7 @@ namespace AOI
{
{
foreach
(
ResultBean
resultBean
in
resultBeans
)
foreach
(
ResultBean
resultBean
in
resultBeans
)
{
{
Pen
pen
=
new
Pen
(
Color
.
YellowGreen
,
5
);
Pen
pen
=
new
Pen
(
Color
.
Lime
,
5
);
if
(!
resultBean
.
result
)
if
(!
resultBean
.
result
)
{
{
pen
=
new
Pen
(
Color
.
Red
,
5
);
pen
=
new
Pen
(
Color
.
Red
,
5
);
...
...
AccAOI/FrmAoiSetting.cs
查看文件 @
1c38d4d
...
@@ -232,17 +232,24 @@ namespace AccAOI
...
@@ -232,17 +232,24 @@ namespace AccAOI
private
void
ShowPorject
()
private
void
ShowPorject
()
{
{
if
(
Project
!=
null
)
if
(
Project
!=
null
)
{
{
CloseCurrAoi
();
aoiList
.
ItemClear
();
aoiList
.
ItemClear
();
imageBox1
.
Image
=
Project
.
standardImage
;
imageBox1
.
Image
=
Project
.
standardImage
;
imageBox1
.
SelectionRegion
=
new
GraphicsPath
();
imageBox1
.
SelectionRegion
=
new
GraphicsPath
();
if
(
Project
.
methodMap
.
Count
>
0
)
if
(
Project
.
methodMap
.
Count
>
0
)
{
{
foreach
(
string
key
in
Project
.
methodMap
.
Keys
)
int
index
=
0
;
foreach
(
string
key
in
Project
.
methodMap
.
Keys
)
{
{
aoiList
.
ItemAdd
(
key
);
aoiList
.
ItemAdd
(
key
);
if
(
index
.
Equals
(
0
))
{
aoiList
.
Index
=
index
;
ShowAoi
(
Project
.
methodMap
[
key
]);
}
}
}
aoiList
.
Index
=
0
;
}
}
}
}
}
}
...
...
AccAOI/control/AoiRgbControl.Designer.cs
查看文件 @
1c38d4d
...
@@ -139,10 +139,10 @@
...
@@ -139,10 +139,10 @@
//
//
this
.
txtMaxR
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMaxR
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMaxR
.
Inside
=
false
;
this
.
txtMaxR
.
Inside
=
false
;
this
.
txtMaxR
.
Location
=
new
System
.
Drawing
.
Point
(
62
,
93
);
this
.
txtMaxR
.
Location
=
new
System
.
Drawing
.
Point
(
59
,
93
);
this
.
txtMaxR
.
Name
=
"txtMaxR"
;
this
.
txtMaxR
.
Name
=
"txtMaxR"
;
this
.
txtMaxR
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxR
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxR
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMaxR
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
30
);
this
.
txtMaxR
.
TabIndex
=
26
;
this
.
txtMaxR
.
TabIndex
=
26
;
this
.
txtMaxR
.
Text
=
"255"
;
this
.
txtMaxR
.
Text
=
"255"
;
this
.
txtMaxR
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
this
.
txtMaxR
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
...
@@ -151,10 +151,10 @@
...
@@ -151,10 +151,10 @@
//
//
this
.
txtMinR
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMinR
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMinR
.
Inside
=
false
;
this
.
txtMinR
.
Inside
=
false
;
this
.
txtMinR
.
Location
=
new
System
.
Drawing
.
Point
(
62
,
41
);
this
.
txtMinR
.
Location
=
new
System
.
Drawing
.
Point
(
59
,
41
);
this
.
txtMinR
.
Name
=
"txtMinR"
;
this
.
txtMinR
.
Name
=
"txtMinR"
;
this
.
txtMinR
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinR
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinR
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMinR
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
30
);
this
.
txtMinR
.
TabIndex
=
25
;
this
.
txtMinR
.
TabIndex
=
25
;
this
.
txtMinR
.
Text
=
"0"
;
this
.
txtMinR
.
Text
=
"0"
;
this
.
txtMinR
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
this
.
txtMinR
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
...
@@ -181,10 +181,10 @@
...
@@ -181,10 +181,10 @@
//
//
this
.
txtMaxG
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMaxG
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMaxG
.
Inside
=
false
;
this
.
txtMaxG
.
Inside
=
false
;
this
.
txtMaxG
.
Location
=
new
System
.
Drawing
.
Point
(
62
,
197
);
this
.
txtMaxG
.
Location
=
new
System
.
Drawing
.
Point
(
59
,
197
);
this
.
txtMaxG
.
Name
=
"txtMaxG"
;
this
.
txtMaxG
.
Name
=
"txtMaxG"
;
this
.
txtMaxG
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxG
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxG
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMaxG
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
30
);
this
.
txtMaxG
.
TabIndex
=
30
;
this
.
txtMaxG
.
TabIndex
=
30
;
this
.
txtMaxG
.
Text
=
"255"
;
this
.
txtMaxG
.
Text
=
"255"
;
this
.
txtMaxG
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
this
.
txtMaxG
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
...
@@ -193,10 +193,10 @@
...
@@ -193,10 +193,10 @@
//
//
this
.
txtMinG
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMinG
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMinG
.
Inside
=
false
;
this
.
txtMinG
.
Inside
=
false
;
this
.
txtMinG
.
Location
=
new
System
.
Drawing
.
Point
(
62
,
145
);
this
.
txtMinG
.
Location
=
new
System
.
Drawing
.
Point
(
59
,
145
);
this
.
txtMinG
.
Name
=
"txtMinG"
;
this
.
txtMinG
.
Name
=
"txtMinG"
;
this
.
txtMinG
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinG
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinG
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMinG
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
30
);
this
.
txtMinG
.
TabIndex
=
29
;
this
.
txtMinG
.
TabIndex
=
29
;
this
.
txtMinG
.
Text
=
"0"
;
this
.
txtMinG
.
Text
=
"0"
;
this
.
txtMinG
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
this
.
txtMinG
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
...
@@ -224,10 +224,10 @@
...
@@ -224,10 +224,10 @@
//
//
this
.
txtMaxB
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMaxB
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMaxB
.
Inside
=
false
;
this
.
txtMaxB
.
Inside
=
false
;
this
.
txtMaxB
.
Location
=
new
System
.
Drawing
.
Point
(
62
,
301
);
this
.
txtMaxB
.
Location
=
new
System
.
Drawing
.
Point
(
59
,
301
);
this
.
txtMaxB
.
Name
=
"txtMaxB"
;
this
.
txtMaxB
.
Name
=
"txtMaxB"
;
this
.
txtMaxB
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxB
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxB
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMaxB
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
30
);
this
.
txtMaxB
.
TabIndex
=
34
;
this
.
txtMaxB
.
TabIndex
=
34
;
this
.
txtMaxB
.
Text
=
"255"
;
this
.
txtMaxB
.
Text
=
"255"
;
this
.
txtMaxB
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
this
.
txtMaxB
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
...
@@ -236,10 +236,10 @@
...
@@ -236,10 +236,10 @@
//
//
this
.
txtMinB
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMinB
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtMinB
.
Inside
=
false
;
this
.
txtMinB
.
Inside
=
false
;
this
.
txtMinB
.
Location
=
new
System
.
Drawing
.
Point
(
62
,
249
);
this
.
txtMinB
.
Location
=
new
System
.
Drawing
.
Point
(
59
,
249
);
this
.
txtMinB
.
Name
=
"txtMinB"
;
this
.
txtMinB
.
Name
=
"txtMinB"
;
this
.
txtMinB
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinB
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinB
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMinB
.
Size
=
new
System
.
Drawing
.
Size
(
41
,
30
);
this
.
txtMinB
.
TabIndex
=
33
;
this
.
txtMinB
.
TabIndex
=
33
;
this
.
txtMinB
.
Text
=
"0"
;
this
.
txtMinB
.
Text
=
"0"
;
this
.
txtMinB
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
this
.
txtMinB
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
...
@@ -288,10 +288,10 @@
...
@@ -288,10 +288,10 @@
// tbMinR
// tbMinR
//
//
this
.
tbMinR
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMinR
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMinR
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
41
);
this
.
tbMinR
.
Location
=
new
System
.
Drawing
.
Point
(
1
07
,
41
);
this
.
tbMinR
.
Maximum
=
255
;
this
.
tbMinR
.
Maximum
=
255
;
this
.
tbMinR
.
Name
=
"tbMinR"
;
this
.
tbMinR
.
Name
=
"tbMinR"
;
this
.
tbMinR
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
45
);
this
.
tbMinR
.
Size
=
new
System
.
Drawing
.
Size
(
1
79
,
45
);
this
.
tbMinR
.
TabIndex
=
10
;
this
.
tbMinR
.
TabIndex
=
10
;
this
.
tbMinR
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMinR
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMinR
.
ValueChanged
+=
new
System
.
EventHandler
(
this
.
tbMinR_ValueChanged
);
this
.
tbMinR
.
ValueChanged
+=
new
System
.
EventHandler
(
this
.
tbMinR_ValueChanged
);
...
@@ -299,10 +299,10 @@
...
@@ -299,10 +299,10 @@
// tbMaxR
// tbMaxR
//
//
this
.
tbMaxR
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMaxR
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMaxR
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
94
);
this
.
tbMaxR
.
Location
=
new
System
.
Drawing
.
Point
(
1
07
,
94
);
this
.
tbMaxR
.
Maximum
=
255
;
this
.
tbMaxR
.
Maximum
=
255
;
this
.
tbMaxR
.
Name
=
"tbMaxR"
;
this
.
tbMaxR
.
Name
=
"tbMaxR"
;
this
.
tbMaxR
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
45
);
this
.
tbMaxR
.
Size
=
new
System
.
Drawing
.
Size
(
1
79
,
45
);
this
.
tbMaxR
.
TabIndex
=
28
;
this
.
tbMaxR
.
TabIndex
=
28
;
this
.
tbMaxR
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMaxR
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMaxR
.
Value
=
255
;
this
.
tbMaxR
.
Value
=
255
;
...
@@ -311,10 +311,10 @@
...
@@ -311,10 +311,10 @@
// tbMaxG
// tbMaxG
//
//
this
.
tbMaxG
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMaxG
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMaxG
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
200
);
this
.
tbMaxG
.
Location
=
new
System
.
Drawing
.
Point
(
1
07
,
200
);
this
.
tbMaxG
.
Maximum
=
255
;
this
.
tbMaxG
.
Maximum
=
255
;
this
.
tbMaxG
.
Name
=
"tbMaxG"
;
this
.
tbMaxG
.
Name
=
"tbMaxG"
;
this
.
tbMaxG
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
45
);
this
.
tbMaxG
.
Size
=
new
System
.
Drawing
.
Size
(
1
79
,
45
);
this
.
tbMaxG
.
TabIndex
=
37
;
this
.
tbMaxG
.
TabIndex
=
37
;
this
.
tbMaxG
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMaxG
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMaxG
.
Value
=
255
;
this
.
tbMaxG
.
Value
=
255
;
...
@@ -323,10 +323,10 @@
...
@@ -323,10 +323,10 @@
// tbMinG
// tbMinG
//
//
this
.
tbMinG
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMinG
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMinG
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
147
);
this
.
tbMinG
.
Location
=
new
System
.
Drawing
.
Point
(
1
07
,
147
);
this
.
tbMinG
.
Maximum
=
255
;
this
.
tbMinG
.
Maximum
=
255
;
this
.
tbMinG
.
Name
=
"tbMinG"
;
this
.
tbMinG
.
Name
=
"tbMinG"
;
this
.
tbMinG
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
45
);
this
.
tbMinG
.
Size
=
new
System
.
Drawing
.
Size
(
1
79
,
45
);
this
.
tbMinG
.
TabIndex
=
36
;
this
.
tbMinG
.
TabIndex
=
36
;
this
.
tbMinG
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMinG
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMinG
.
ValueChanged
+=
new
System
.
EventHandler
(
this
.
tbMinG_ValueChanged
);
this
.
tbMinG
.
ValueChanged
+=
new
System
.
EventHandler
(
this
.
tbMinG_ValueChanged
);
...
@@ -334,10 +334,10 @@
...
@@ -334,10 +334,10 @@
// tbMaxB
// tbMaxB
//
//
this
.
tbMaxB
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMaxB
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMaxB
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
306
);
this
.
tbMaxB
.
Location
=
new
System
.
Drawing
.
Point
(
1
07
,
306
);
this
.
tbMaxB
.
Maximum
=
255
;
this
.
tbMaxB
.
Maximum
=
255
;
this
.
tbMaxB
.
Name
=
"tbMaxB"
;
this
.
tbMaxB
.
Name
=
"tbMaxB"
;
this
.
tbMaxB
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
45
);
this
.
tbMaxB
.
Size
=
new
System
.
Drawing
.
Size
(
1
79
,
45
);
this
.
tbMaxB
.
TabIndex
=
39
;
this
.
tbMaxB
.
TabIndex
=
39
;
this
.
tbMaxB
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMaxB
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMaxB
.
Value
=
255
;
this
.
tbMaxB
.
Value
=
255
;
...
@@ -346,10 +346,10 @@
...
@@ -346,10 +346,10 @@
// tbMinB
// tbMinB
//
//
this
.
tbMinB
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMinB
.
BackColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
tbMinB
.
Location
=
new
System
.
Drawing
.
Point
(
1
45
,
253
);
this
.
tbMinB
.
Location
=
new
System
.
Drawing
.
Point
(
1
07
,
253
);
this
.
tbMinB
.
Maximum
=
255
;
this
.
tbMinB
.
Maximum
=
255
;
this
.
tbMinB
.
Name
=
"tbMinB"
;
this
.
tbMinB
.
Name
=
"tbMinB"
;
this
.
tbMinB
.
Size
=
new
System
.
Drawing
.
Size
(
1
41
,
45
);
this
.
tbMinB
.
Size
=
new
System
.
Drawing
.
Size
(
1
79
,
45
);
this
.
tbMinB
.
TabIndex
=
38
;
this
.
tbMinB
.
TabIndex
=
38
;
this
.
tbMinB
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMinB
.
TickStyle
=
System
.
Windows
.
Forms
.
TickStyle
.
None
;
this
.
tbMinB
.
ValueChanged
+=
new
System
.
EventHandler
(
this
.
tbMinB_ValueChanged
);
this
.
tbMinB
.
ValueChanged
+=
new
System
.
EventHandler
(
this
.
tbMinB_ValueChanged
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论