From d7e3f882feb9307c22b0cd2698e45d24804b6572 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 20 七月 2022 18:37:45 +0800 Subject: [PATCH] '完善' --- ConsoleApplication/CaptureUtil.h | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ConsoleApplication/CaptureUtil.h b/ConsoleApplication/CaptureUtil.h index 3e6c74d..07d6ab0 100644 --- a/ConsoleApplication/CaptureUtil.h +++ b/ConsoleApplication/CaptureUtil.h @@ -7,6 +7,10 @@ #include <string> #include "ImgUtil.h" using namespace std; +enum CaptureContentType { + CAPTURE_TYPE_L2, + CAPTURE_TYPE_TRADE_QUEUE +}; struct FrameInfo { HWND frame; @@ -24,14 +28,16 @@ static HWND level2Frames[8]; static HWND tradeQueueFrames[8]; static BOOL CALLBACK EnumChildProc(HWND hwndChild, LPARAM lParam); - static HWND getHWND(int index); + public: //初始化 static void init(HWND l2win); + static HWND getHWND(int index, CaptureContentType type); + //截图 - static cv::Mat capture(int index); + static cv::Mat capture(int index, CaptureContentType type); static cv::Mat capture(HWND frame); -- Gitblit v1.8.0