/// <summary> /// 检查鼠标是否在合法区域外 /// </summary> /// <param name="point"></param> /// <returns></returns> public bool CheckPointInRegion(Point point) { if (DrawRestrict && this.picturebox.Zoom == 1) { return(VideoRegion != null && VideoRegion.IsVisible(point)); } else { return(false); } }
public bool CheckPointInRegion(PointF point) { return(VideoRegion != null && VideoRegion.IsVisible(point)); }