Files
UVtools/UVtools.GUI/Extensions/EmguExtensions.cs
T
Tiago Conceição 379c5140f6 v0.5.1.2
* (Add) Able to install only the desired profiles and not the whole lot (Suggested  by: Ingo Strohmenger)
* (Add) Update manager for PrusaSlicer profiles
* (Add) If PrusaSlicer not installed on system it prompt for installation (By open the official website)
* (Fix) Prevent profiles instalation when PrusaSlicer is not installed on system
* (Fix) The "Issues" computation sometimes fails triggering an error due the use of non concurrent dictionary
* (Fix) Print profiles won't install into PrusaSlicer
2020-06-17 19:54:00 +01:00

24 lines
700 B
C#

/*
* GNU AFFERO GENERAL PUBLIC LICENSE
* Version 3, 19 November 2007
* Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
*/
using Emgu.CV;
using Emgu.CV.Structure;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
namespace UVtools.GUI.Extensions
{
public static class EmguExtensions
{
public static Image<L8> ToImageSharpL8(this Image<Gray, byte> image)
{
return Image.LoadPixelData<L8>(image.Bytes, image.Width, image.Height);
}
}
}