Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
AccAOI
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 895e0b1a
由
LN
编写于
2019-08-21 17:08:49 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
9c337487
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
0 行删除
AOI/AoiMethod.cs
AOI/AoiProject.cs
ImageBox/ImageBox.cs
AOI/AoiMethod.cs
查看文件 @
895e0b1
...
@@ -93,6 +93,7 @@ namespace AOI
...
@@ -93,6 +93,7 @@ namespace AOI
{
{
//g.Clear(Color.Transparent);
//g.Clear(Color.Transparent);
g
.
DrawImage
(
maskImg
,
dstRect
,
srcRect
,
GraphicsUnit
.
Pixel
);
g
.
DrawImage
(
maskImg
,
dstRect
,
srcRect
,
GraphicsUnit
.
Pixel
);
g
.
Dispose
();
}
}
result
.
MakeTransparent
(
Color
.
White
);
result
.
MakeTransparent
(
Color
.
White
);
return
result
;
return
result
;
...
...
AOI/AoiProject.cs
查看文件 @
895e0b1
...
@@ -79,6 +79,7 @@ namespace AOI
...
@@ -79,6 +79,7 @@ namespace AOI
g
.
DrawPath
(
pen
,
resultBean
.
roiPath
);
g
.
DrawPath
(
pen
,
resultBean
.
roiPath
);
}
}
}
}
g
.
Dispose
();
}
}
resultImg
=
image
;
resultImg
=
image
;
return
resultBeans
;
return
resultBeans
;
...
...
ImageBox/ImageBox.cs
查看文件 @
895e0b1
...
@@ -443,6 +443,7 @@ namespace Acc.ImageBox
...
@@ -443,6 +443,7 @@ namespace Acc.ImageBox
g
.
FillRectangle
(
brush
,
new
Rectangle
(
0
,
0
,
cellSize
,
cellSize
));
g
.
FillRectangle
(
brush
,
new
Rectangle
(
0
,
0
,
cellSize
,
cellSize
));
g
.
FillRectangle
(
brush
,
new
Rectangle
(
cellSize
,
cellSize
,
cellSize
,
cellSize
));
g
.
FillRectangle
(
brush
,
new
Rectangle
(
cellSize
,
cellSize
,
cellSize
,
cellSize
));
}
}
g
.
Dispose
();
}
}
return
result
;
return
result
;
...
@@ -2419,6 +2420,7 @@ namespace Acc.ImageBox
...
@@ -2419,6 +2420,7 @@ namespace Acc.ImageBox
{
{
var
br
=
new
TextureBrush
(
this
.
Image
);
var
br
=
new
TextureBrush
(
this
.
Image
);
g
.
FillPath
(
br
,
this
.
SelectionRegion
);
g
.
FillPath
(
br
,
this
.
SelectionRegion
);
g
.
Dispose
();
}
}
var
dstRect
=
new
RectangleF
(
0
,
0
,
bounds
.
Width
,
bounds
.
Height
);
var
dstRect
=
new
RectangleF
(
0
,
0
,
bounds
.
Width
,
bounds
.
Height
);
...
@@ -2427,6 +2429,7 @@ namespace Acc.ImageBox
...
@@ -2427,6 +2429,7 @@ namespace Acc.ImageBox
{
{
result
=
new
Bitmap
((
int
)
bounds
.
Width
,
(
int
)
bounds
.
Width
);
result
=
new
Bitmap
((
int
)
bounds
.
Width
,
(
int
)
bounds
.
Width
);
g
.
DrawImage
(
mask
,
dstRect
,
srcRect
,
GraphicsUnit
.
Pixel
);
g
.
DrawImage
(
mask
,
dstRect
,
srcRect
,
GraphicsUnit
.
Pixel
);
g
.
Dispose
();
}
}
return
result
;
return
result
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论