Feat: Z button ROI region, sends COMMAND_SCREEN_ROI to restrict capture area

This commit is contained in:
yuanyuanxiang
2026-06-14 01:02:53 +02:00
parent 63ef75b7ce
commit eaa0cc6d0b
10 changed files with 142 additions and 17 deletions

View File

@@ -297,6 +297,15 @@ public:
CPoint m_ptShotStart; // 右键框选起点(屏幕坐标)
CPoint m_ptShotCurrent; // 右键框选当前点(屏幕坐标)
// ========== 远程ROI功能Z按钮 ==========
bool m_bROIArmed = false; // Z已点击等待拖选
bool m_bROIActive = false; // ROI已发送到远程Z高亮
bool m_bSelectingROI = false; // 正在拖选ROI区域
CPoint m_ptROIStart; // 拖选起点(屏幕坐标)
CPoint m_ptROICurrent; // 拖选当前点(屏幕坐标)
void SendROICommand(const RECT& rc); // 发送COMMAND_SCREEN_ROI不依赖控制模式
void ResetROI(); // 清除ROI并通知远程
void ResetZoom(); // 重置放大状态
CPoint ScreenToImage(CPoint pt); // 屏幕坐标转原图坐标
CPoint ImageToScreen(CPoint pt); // 原图坐标转屏幕坐标