领胜LDS 键盘AOI检测项目
xcd
2020-07-01 9d05b4e5a7b667afb6d13cbcb460e377c175c170
src/Bro.UI.Model.Winform/Element/CrossHair.cs
@@ -125,7 +125,7 @@
            if (IsShowRemark)
            {
                string info = Index.ToString() + ":(" + CenterPoint.X.ToString() + ";" + CenterPoint.Y.ToString() + ")";
                g.DrawString(info, new Font("NewRoman", FontSize), new SolidBrush(Pen.Color), new PointF((float)CenterPoint.U + FontDistance, (float)CenterPoint.V + FontDistance));
                g.DrawString(info, Font, new SolidBrush(Pen.Color), new PointF((float)CenterPoint.U + FontDistance, (float)CenterPoint.V + FontDistance));
            }
        }
@@ -148,7 +148,7 @@
            return rect.IntersectsWith(BaseRectangle);
        }
        public override void CalculateBaseRectangle()
        public void CalculateBaseRectangle()
        {
            BaseRectangle = new Rectangle(new Point((int)CenterPoint.U - HalfLength, (int)CenterPoint.V - HalfLength), new Size(HalfLength * 2, HalfLength * 2));
        }