初次加载设置窗口时,测温区框线初次打开不可见问题修复
This commit is contained in:
@@ -2515,7 +2515,16 @@ namespace JoyD.Windows.CS
|
||||
e.Graphics.DrawImage(_tempDiffOverlayImage, destRect, 0, 0, _tempDiffOverlayImage.Width, _tempDiffOverlayImage.Height, GraphicsUnit.Pixel);
|
||||
}
|
||||
|
||||
// 2. 然后绘制叠加层(根据控件尺寸进行缩放)
|
||||
// 2. 检查并确保叠加层图像存在
|
||||
if (_drawnRectangles.Count > 0 && picBoxTemp.Image != null && (_rectangleOverlayImage == null ||
|
||||
_rectangleOverlayImage.Width != picBoxTemp.Image.Width ||
|
||||
_rectangleOverlayImage.Height != picBoxTemp.Image.Height))
|
||||
{
|
||||
// 创建或更新叠加层图像
|
||||
CreateRectangleOverlayImage();
|
||||
}
|
||||
|
||||
// 3. 然后绘制叠加层(根据控件尺寸进行缩放)
|
||||
if (_rectangleOverlayImage != null && picBoxTemp.Image != null)
|
||||
{
|
||||
// 计算缩放后的目标矩形
|
||||
|
||||
Reference in New Issue
Block a user