예제 #1
0
        public static Point FindColorE(this dmsoft dmsoft, FindColorE findColor)
        {
            Point  point = new Point();
            string pos   = dmsoft.FindColorE(findColor.X1, findColor.Y1, findColor.X2, findColor.Y2, findColor.Color, findColor.Sim, findColor.Dir);

            if (!string.IsNullOrWhiteSpace(pos))
            {
                var arr = pos.Split('|');
                point.X = int.Parse(arr[0]);
                point.Y = int.Parse(arr[1]);
            }
            return(point);
        }
예제 #2
0
 public string FindColorE(int x1, int y1, int x2, int y2, string color, double sim, int dir)
 {
     return(dm.FindColorE(x1, y1, x2, y2, color, sim, dir));
 }