Commit 340d848c 刘韬

1

1 个父辈 6d28a16b
......@@ -85,17 +85,18 @@ namespace AccAOI.control
lblResult.Text = "OK";// + "(" + Math.Round(sameValue*100) + "%)";
this.aoiImage.Image = FrmAoiSetting.BaseImg;
FrmAoiSetting.Project.OrgImage = FrmAoiSetting.OrgBaseImg;
var xoffset = lastPath.PathPoints[0].X - currPath.PathPoints[0].X;
var yoffset = lastPath.PathPoints[0].Y - currPath.PathPoints[0].Y;
foreach (var mm in FrmAoiSetting.Project.methodMap) {
//for (int i = 0; i < mm.Value.RoiPath.PathPoints.Count(); i++)
//{
if (lastPath != null)
{
var xoffset = lastPath.PathPoints[0].X - currPath.PathPoints[0].X;
var yoffset = lastPath.PathPoints[0].Y - currPath.PathPoints[0].Y;
foreach (var mm in FrmAoiSetting.Project.methodMap)
{
Matrix translateMatrix = new Matrix();
translateMatrix.Translate(xoffset, yoffset);
mm.Value.RoiPath.Transform(translateMatrix);
//}
}
}
lastPath = (GraphicsPath)currPath.Clone();
lastPath = (GraphicsPath)currPath?.Clone();
//FrmAoiSetting.ShowPorject();
//lblTime.Text = "times :" + Math.Round(span.TotalSeconds, 1) + "s";
}
......@@ -211,7 +212,7 @@ namespace AccAOI.control
private void AioEyemMarkControl_Load(object sender, EventArgs e)
{
lastPath=(GraphicsPath)currPath.Clone();
lastPath=(GraphicsPath)currPath?.Clone();
}
}
}
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!