更新TemperatureData.cs文件中温度分辨率相关代码
This commit is contained in:
@@ -125,10 +125,8 @@ namespace JoyD.Windows.CS.Toprie
|
||||
System.Diagnostics.Debug.WriteLine($"根据数据长度自适应宽高: {adaptiveWidth}x{adaptiveHeight} (像素数: {pixelCount})");
|
||||
|
||||
// 如果自适应宽高与传入的宽高不同,更新宽高并重新初始化矩阵
|
||||
bool isAdaptiveResolution = false;
|
||||
if (adaptiveWidth != Width || adaptiveHeight != Height)
|
||||
{
|
||||
isAdaptiveResolution = true;
|
||||
Width = adaptiveWidth;
|
||||
Height = adaptiveHeight;
|
||||
TemperatureMatrix = new float[Height, Width];
|
||||
|
||||
Reference in New Issue
Block a user