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-05-07 05:09:51 +0300
committerTiago Conceição <Tiago_caza@hotmail.com>2021-05-07 05:09:51 +0300
commit1c37636dd9b4b08a43f46032b544f2759a6ddc6c (patch)
treefb8170c4459a60c79e740cd513c75bf78702388e /UVtools.Core/Extensions/EmguExtensions.cs
parent36881041d6de156832b246c3000b893a7f8813fb (diff)
v2.10.0v2.10.0
- **Exposure time finder:** - Add a enable option for each feature - Add a staircase: Creates an incremental stair at top from left to right that goes up to the top layer - Add a section dedicated to the bullseye and revamp the design - Add a section for counter triangles (this will take the space of the old bullseye) - Allow negative fence offset for zebra bars - Allow to preview the exposure time information - Changed some defaults - (Add) Layer actions - Export layers to animated GIF - **Note:** Non Windows users must install 'libgdiplus' dependency in order to use this tool - (Add) Tools - Dynamic lifts: Generate dynamic lift height and speeds for each layer given it mass - (Improvement) File formats using json files are now saved with human readable indentation - (Fix) GCode builder: Raise to top on completion command was not being sent when feedrate units are in mm/min - (Fix) Tools - Layer Range Selector: Fix the 'to layer' minimum to not allow negative values and limit to 0
Diffstat (limited to 'UVtools.Core/Extensions/EmguExtensions.cs')
-rw-r--r--UVtools.Core/Extensions/EmguExtensions.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/UVtools.Core/Extensions/EmguExtensions.cs b/UVtools.Core/Extensions/EmguExtensions.cs
index 2806e43..2631597 100644
--- a/UVtools.Core/Extensions/EmguExtensions.cs
+++ b/UVtools.Core/Extensions/EmguExtensions.cs
@@ -13,6 +13,7 @@ using System.Runtime.InteropServices;
using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
+using Emgu.CV.Util;
namespace UVtools.Core.Extensions
{
@@ -333,5 +334,12 @@ namespace UVtools.Core.Extensions
return layers;
}
+ public static byte[] GetPngByes(this Mat mat)
+ {
+ using var vector = new VectorOfByte();
+ CvInvoke.Imencode(".png", mat, vector);
+ return vector.ToArray();
+ }
+
}
}