移动测温区不成功
This commit is contained in:
@@ -2338,6 +2338,9 @@ namespace JoyD.Windows.CS
|
||||
imageBottomRight.Y - imageTopLeft.Y
|
||||
);
|
||||
|
||||
// 关键修改:在MouseMove中同步列表,确保绘制使用最新数据
|
||||
SyncTemperatureZonesFromDrawnRectangles();
|
||||
|
||||
// 重新创建叠加层以反映变化
|
||||
CreateRectangleOverlayImage();
|
||||
|
||||
@@ -2380,6 +2383,9 @@ namespace JoyD.Windows.CS
|
||||
// 更新起始点,为下一次移动做准备
|
||||
_startMovePoint = e.Location;
|
||||
|
||||
// 关键修改:在MouseMove中同步列表,确保绘制使用最新数据
|
||||
SyncTemperatureZonesFromDrawnRectangles();
|
||||
|
||||
// 重新创建叠加层以反映变化
|
||||
CreateRectangleOverlayImage();
|
||||
|
||||
@@ -2862,6 +2868,14 @@ namespace JoyD.Windows.CS
|
||||
_isResizing = false;
|
||||
_currentHandle = ResizeHandle.None;
|
||||
picBoxTemp.Cursor = Cursors.Default;
|
||||
|
||||
// 同步到原始测温区列表和绝对测温区列表
|
||||
SyncTemperatureZonesFromDrawnRectangles();
|
||||
|
||||
// 重新绘制叠加层并刷新界面
|
||||
CreateRectangleOverlayImage();
|
||||
picBoxTemp.Invalidate();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2878,6 +2892,14 @@ namespace JoyD.Windows.CS
|
||||
{
|
||||
_isMoving = false;
|
||||
picBoxTemp.Cursor = Cursors.Default;
|
||||
|
||||
// 同步到原始测温区列表和绝对测温区列表
|
||||
SyncTemperatureZonesFromDrawnRectangles();
|
||||
|
||||
// 重新绘制叠加层并刷新界面
|
||||
CreateRectangleOverlayImage();
|
||||
picBoxTemp.Invalidate();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user