diff --git a/src/PBAnaly/Module/BioanalysisMannage.cs b/src/PBAnaly/Module/BioanalysisMannage.cs index 7468664..dd7112f 100644 --- a/src/PBAnaly/Module/BioanalysisMannage.cs +++ b/src/PBAnaly/Module/BioanalysisMannage.cs @@ -72,6 +72,7 @@ namespace PBAnaly.Module #region 变量 private ShapeForm curShape = ShapeForm.None; private int curShapeIndex; + private System.Drawing.Point curShapePoint; public int ImageIndex { get; set; }// 图片加载进来的序号 public bool Arrangement { get; set; } @@ -1643,7 +1644,7 @@ namespace PBAnaly.Module curShape = ShapeForm.Polygon; } - + curShapePoint = readLoction; } } @@ -1681,11 +1682,25 @@ namespace PBAnaly.Module case ShapeForm.Polygon: break; case ShapeForm.Rect: - + System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle(curShapePoint, new System.Drawing.Size(oldCopyRect.rect.Width,oldCopyRect.rect.Height)); + oldCopyRect.rect = rectangle; rectangles.Add(oldCopyRect); break; case ShapeForm.Circle: + int offsetX = curShapePoint.X - oldCopyCircle.center.X; + int offsetY = curShapePoint.Y - oldCopyCircle.center.Y; + + // 更新圆心位置 + oldCopyCircle.center.X += offsetX; + oldCopyCircle.center.Y += offsetY; + System.Drawing.Point point = new System.Drawing.Point(oldCopyCircle.Radius.X, oldCopyCircle.Radius.Y); + point.X += offsetX; + point.Y += offsetY; + oldCopyCircle.Radius = point; + + + CircleAndInfoList.Add(oldCopyCircle); break; default: diff --git a/src/PBAnaly/UI/BioanalyImagePanel.Designer.cs b/src/PBAnaly/UI/BioanalyImagePanel.Designer.cs index 616f377..d651ab2 100644 --- a/src/PBAnaly/UI/BioanalyImagePanel.Designer.cs +++ b/src/PBAnaly/UI/BioanalyImagePanel.Designer.cs @@ -364,7 +364,7 @@ this.ctms_strop_stickup, this.ctms_strop_delete}); this.ctms_strop.Name = "ctms_strop"; - this.ctms_strop.Size = new System.Drawing.Size(181, 98); + this.ctms_strop.Size = new System.Drawing.Size(101, 76); // // toolStripSeparator1 //