Пример #1
0
 /// <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);
     }
 }
Пример #2
0
 public bool CheckPointInRegion(PointF point)
 {
     return(VideoRegion != null && VideoRegion.IsVisible(point));
 }