老师说期末的 大作业.Rectangle shape=new Rectangle(startPoint.X ,startPoint.Y ,e.X - startPoint.X ,e.Y -startPoint.Y );
if(shape.Contains(e.X,e.Y))
{g.Clear(Color.Gray);
g.DrawRectangle (new Pen(foreColor,mm),startPoint.X ,startPoint.Y ,e.X -startPoint.X ,e.Y -startPoint.Y );大哥 你看看这样可以吗