Feat: Z button ROI region, sends COMMAND_SCREEN_ROI to restrict capture area
This commit is contained in:
@@ -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); // 原图坐标转屏幕坐标
|
||||
|
||||
Reference in New Issue
Block a user