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:
Diffstat (limited to 'UVtools.Core/Operations/OperationBlur.cs')
-rw-r--r--UVtools.Core/Operations/OperationBlur.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/UVtools.Core/Operations/OperationBlur.cs b/UVtools.Core/Operations/OperationBlur.cs
index b7ae234..b9fc536 100644
--- a/UVtools.Core/Operations/OperationBlur.cs
+++ b/UVtools.Core/Operations/OperationBlur.cs
@@ -12,6 +12,7 @@ using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Threading.Tasks;
+using UVtools.Core.Extensions;
using UVtools.Core.FileFormats;
using UVtools.Core.Objects;
@@ -147,9 +148,9 @@ public sealed class OperationBlur : Operation
{
Size size = new((int)Size, (int)Size);
Point anchor = Kernel.Anchor;
- if (anchor.IsEmpty) anchor = new Point(-1, -1);
+ if (anchor.IsEmpty) anchor = EmguExtensions.AnchorCenter;
//if (size.IsEmpty) size = new Size(3, 3);
- //if (anchor.IsEmpty) anchor = new Point(-1, -1);
+ //if (anchor.IsEmpty) anchor = EmguExtensions.AnchorCenter;
var target = GetRoiOrDefault(mat);
using var original = mat.Clone();
switch (BlurOperation)