| | |
| | | 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)); |
| | | } |
| | | } |
| | | |
| | |
| | | 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)); |
| | | } |