diff options
Diffstat (limited to 'UVtools.Core/Extensions/EmguExtensions.cs')
-rw-r--r-- | UVtools.Core/Extensions/EmguExtensions.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UVtools.Core/Extensions/EmguExtensions.cs b/UVtools.Core/Extensions/EmguExtensions.cs index 2631597..3a55047 100644 --- a/UVtools.Core/Extensions/EmguExtensions.cs +++ b/UVtools.Core/Extensions/EmguExtensions.cs @@ -145,14 +145,14 @@ namespace UVtools.Core.Extensions { var dx = Math.Abs(dst.Step - src.Step) / 2; var dy = Math.Abs(dst.Height - src.Height) / 2; - Mat m = new Mat(dst, new Rectangle(dx, dy, src.Width, src.Height)); + Mat m = new(dst, new Rectangle(dx, dy, src.Width, src.Height)); src.CopyTo(m); } else if (dst.Step < src.Step && dst.Height < src.Height) { var dx = Math.Abs(dst.Step - src.Step) / 2; var dy = Math.Abs(dst.Height - src.Height) / 2; - Mat m = new Mat(src, new Rectangle(dx, dy, dst.Width, dst.Height)); + Mat m = new(src, new Rectangle(dx, dy, dst.Width, dst.Height)); m.CopyTo(dst); } } |