From cb62a9e243d8ba7044cc84e171cee4787512a30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Mon, 4 Oct 2021 06:28:17 +0100 Subject: [PATCH] v2.23.4 - (Fix) RGB images was preventing file open/save/convertion --- CHANGELOG.md | 4 ++++ UVtools.Core/Extensions/EmguExtensions.cs | 2 +- UVtools.Core/UVtools.Core.csproj | 2 +- UVtools.WPF/UVtools.WPF.csproj | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f8b5f3c..9f6eac6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 04/10/2021 - v2.23.4 + +- (Fix) RGB images was preventing file open/save/convertion + ## 04/10/2021 - v2.23.3 - **Pixel arithmetic** diff --git a/UVtools.Core/Extensions/EmguExtensions.cs b/UVtools.Core/Extensions/EmguExtensions.cs index efb7327..35ae468 100644 --- a/UVtools.Core/Extensions/EmguExtensions.cs +++ b/UVtools.Core/Extensions/EmguExtensions.cs @@ -329,7 +329,7 @@ namespace UVtools.Core.Extensions /// The total length of this public static int GetLength(this Mat mat) { - return mat.Total.ToInt32(); + return mat.Total.ToInt32() * mat.NumberOfChannels; } /// diff --git a/UVtools.Core/UVtools.Core.csproj b/UVtools.Core/UVtools.Core.csproj index 1f8f028..4fcd3ee 100644 --- a/UVtools.Core/UVtools.Core.csproj +++ b/UVtools.Core/UVtools.Core.csproj @@ -10,7 +10,7 @@ https://github.com/sn4k3/UVtools https://github.com/sn4k3/UVtools MSLA/DLP, file analysis, calibration, repair, conversion and manipulation - 2.23.3 + 2.23.4 Copyright © 2020 PTRTECH UVtools.png AnyCPU;x64 diff --git a/UVtools.WPF/UVtools.WPF.csproj b/UVtools.WPF/UVtools.WPF.csproj index 337e15e..07f8ebd 100644 --- a/UVtools.WPF/UVtools.WPF.csproj +++ b/UVtools.WPF/UVtools.WPF.csproj @@ -12,7 +12,7 @@ LICENSE https://github.com/sn4k3/UVtools Git - 2.23.3 + 2.23.4 AnyCPU;x64