Esempio n. 1
0
        public static Point FindMultiColorE(this dmsoft dmsoft, FindMultiColorE findColor)
        {
            var pos = dmsoft.FindMultiColorE(findColor.X1, findColor.Y1, findColor.X2, findColor.Y2, findColor.FirstColor, findColor.OffsetColor, findColor.Sim, findColor.Dir);

            if (string.IsNullOrWhiteSpace(pos))
            {
                var arr = pos.Split('|');
                return(new Point(int.Parse(arr[0]), int.Parse(arr[1])));
            }
            else
            {
                return(new Point());
            }
        }
Esempio n. 2
0
 public string FindMultiColorE(int x1, int y1, int x2, int y2, string first_color, string offset_color, double sim, int dir)
 {
     return(dm.FindMultiColorE(x1, y1, x2, y2, first_color, offset_color, sim, dir));
 }