1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*
* 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 System.Drawing;
namespace UVtools.GUI
{
public class Mutation
{
#region Enum
public enum Mutates : byte
{
Resize,
Solidify,
//LayerSmash,
Erode,
Dilate,
Opening,
Closing,
Gradient,
TopHat,
BlackHat,
HitMiss,
PyrDownUp,
SmoothMedian,
SmoothGaussian,
}
#endregion
#region Properties
public Mutates Mutate { get; }
public string Description { get; }
public Image Image { get; }
#endregion
#region Constructor
public Mutation(Mutates mutate, string description, Image image = null)
{
Mutate = mutate;
Description = description;
Image = image;
}
#endregion
}
}
|