Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Conceição <Tiago_caza@hotmail.com>2020-06-22 05:44:57 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2020-06-22 05:44:57 +0300
commit494c8d98dcd4261186b70048a62b9d87931d1f75 (patch)
tree25170451f98a1d1034c131488635de39e6de66f8 /UVtools.Core/Extensions/EmguExtensions.cs
parent3f559ce03d1a97d64543db588612e8cb04e73b0d (diff)
complete Core
Diffstat (limited to 'UVtools.Core/Extensions/EmguExtensions.cs')
-rw-r--r--UVtools.Core/Extensions/EmguExtensions.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/UVtools.Core/Extensions/EmguExtensions.cs b/UVtools.Core/Extensions/EmguExtensions.cs
index fbf8374..381dc24 100644
--- a/UVtools.Core/Extensions/EmguExtensions.cs
+++ b/UVtools.Core/Extensions/EmguExtensions.cs
@@ -6,6 +6,7 @@
* of this license document, but changing it is not allowed.
*/
+using System.Drawing;
using System.Runtime.InteropServices;
using Emgu.CV;
using Emgu.CV.CvEnum;
@@ -24,5 +25,10 @@ namespace UVtools.Core.Extensions
return data;
}
+
+ public static Mat CloneBlank(this Mat mat)
+ {
+ return new Mat(new Size(mat.Width, mat.Height), mat.Depth, mat.NumberOfChannels);
+ }
}
}