Exemplo n.º 1
0
        /// <summary>
        /// 根据指定的多点查找颜色坐标
        /// </summary>
        /// <param name="dmsoft"></param>
        /// <param name="findColor"></param>
        /// <returns></returns>
        public static Point FindMultiColor(this dmsoft dmsoft, FindMultiColor findColor)
        {
            int x, y;
            var res = dmsoft.FindMultiColor(findColor.X1, findColor.Y1, findColor.X2, findColor.Y2, findColor.FirstColor, findColor.OffsetColor, findColor.Sim, findColor.Dir, out x, out y);

            if (res == 1)
            {
                return(new Point(x, y));
            }
            else
            {
                return(new Point());
            }
        }