Ejemplo n.º 1
0
        public bool IsOverlapped(DrawingTool tool, Graphics graph)
        {
            Region region = Region;

            region.Intersect(tool.Region);
            return(!region.IsEmpty(graph));
        }
Ejemplo n.º 2
0
        protected override Rectangle GetSurroundingRect()
        {
            Rectangle    lRet    = Rectangle.Empty;
            List <Point> lPoints = new List <Point>(Points);

            if (_MovingPoint != Point.Empty)
            {
                lPoints.Add(_MovingPoint);
            }

            return(DrawingTool.GetClipRect(lPoints.ToArray()));
        }
Ejemplo n.º 3
0
 protected override Rectangle GetSurroundingRect()
 {
     return(DrawingTool.GetClipRect(new Point[] { StartPos, EndPos }));
 }