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

EmguExtensions.cs « UVtools.GUI - github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30a3d615b57e3ef56edc15c8e48207921a955f28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 *                     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 UVtools.Parser;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;

namespace UVtools.GUI
{
    public static class EmguExtensions
    {
        public static Image<L8> ToImageSharpL8(this Image<Gray, byte> image)
        {
            return Image.LoadPixelData<L8>(image.Bytes, image.Width, image.Height);
        }
    }
}