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>2021-06-12 05:56:20 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-06-12 05:56:20 +0300
commit5d61e95331329a842c8547c04f40c68bcc922693 (patch)
treeb1f23594e678af6ec4c379d85282c5c374d306cf /UVtools.Core/Extensions/EmguExtensions.cs
parent470f5ec1cf87fff04ed88044e3b3beeeabd55609 (diff)
v2.13.3v2.13.3
- **File formats:** - (Add) CXDLP v2 - (Improved) GR1, MDLP, CXDLP decode and encode performance and memory optimization - (Remove) CXDLP v1 from available formats - (Add) Pixel editor - Drawing: New brushes of shapes/polygons - (Upgrade) .NET from 5.0.6 to 5.0.7 - (Fix) When there are issues on the list, executing any operation will navigate to the last layer - (Fix) PrusaSlicer printer: Rename "Creality HALOT-SKY CL-60" to "Creality HALOT-ONE CL-60"
Diffstat (limited to 'UVtools.Core/Extensions/EmguExtensions.cs')
-rw-r--r--UVtools.Core/Extensions/EmguExtensions.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/UVtools.Core/Extensions/EmguExtensions.cs b/UVtools.Core/Extensions/EmguExtensions.cs
index 1963528..0399fa6 100644
--- a/UVtools.Core/Extensions/EmguExtensions.cs
+++ b/UVtools.Core/Extensions/EmguExtensions.cs
@@ -608,7 +608,8 @@ namespace UVtools.Core.Extensions
/// <param name="startingAngle"></param>
/// <param name="thickness"></param>
/// <param name="lineType"></param>
- public static void DrawPolygon(this Mat src, int sides, int radius, Point center, MCvScalar color, double startingAngle = 0, int thickness = -1, LineType lineType = LineType.EightConnected)
+ /// <param name="flip"></param>
+ public static void DrawPolygon(this Mat src, int sides, int radius, Point center, MCvScalar color, double startingAngle = 0, int thickness = -1, LineType lineType = LineType.EightConnected, FlipType flip = FlipType.None)
{
if (sides == 1)
{
@@ -625,7 +626,9 @@ namespace UVtools.Core.Extensions
return;
}
- var points = DrawingExtensions.GetPolygonVertices(sides, radius, center, startingAngle);
+ var points = DrawingExtensions.GetPolygonVertices(sides, radius, center, startingAngle,
+ (flip & FlipType.Horizontal) != 0, (flip & FlipType.Vertical) != 0);
+
if (thickness <= 0)
{
using var vec = new VectorOfPoint(points);