| | |
| | | /// <param name="noPoint"></param> |
| | | /// <param name="limitRect"></param> |
| | | /// <returns></returns> |
| | | public static bool FindYaoqingZuduiWindow(out ZTPoint yesPoint,out ZTPoint noPoint, ZTRectangle limitRect) |
| | | public static bool FindYaoqingZuduiWindow(out Structs.ZTPoint yesPoint,out Structs.ZTPoint noPoint, ZTRectangle limitRect) |
| | | { |
| | | ZTRectangle textRect = ZTRectangle.Empty; |
| | | yesPoint = ZTPoint.Empty; |
| | | noPoint = ZTPoint.Empty; |
| | | yesPoint = Structs.ZTPoint.Empty; |
| | | noPoint = Structs.ZTPoint.Empty; |
| | | Image<Rgb, byte> image = ScreenCapture.Instance.CaptureScreenReturnImage(); |
| | | |
| | | if (!CVHelper.FindColorArray(out textRect, image, YaoqingZuduiWindowTitle, limitRect)) |
| | |
| | | return false; |
| | | } |
| | | |
| | | ZTPoint center = textRect.GetCenterPoint(); |
| | | yesPoint = new ZTPoint(center.X - 28, center.Y + 186); |
| | | noPoint = new ZTPoint(center.X + 28, center.Y + 186); |
| | | Structs.ZTPoint center = textRect.GetCenterPoint(); |
| | | yesPoint = new Structs.ZTPoint(center.X - 28, center.Y + 186); |
| | | noPoint = new Structs.ZTPoint(center.X + 28, center.Y + 186); |
| | | return true; |
| | | } |
| | | |