예제 #1
0
        public override RectangleF ExpandPaintBounds(RectangleF rect, GoView view)
        {
            RectangleF a        = RotateHelper.GetRotatedBounds(rect, Angle);
            float      penWidth = PenWidth;

            GoObject.InflateRect(ref a, penWidth, penWidth);
            return(RectangleF.Union(rect, a));
        }
예제 #2
0
 public override bool ContainsPoint(PointF p)
 {
     return(base.ContainsPoint(RotateHelper.RotatePoint(p, base.Center, 0f - Angle)));
 }