mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-10 10:32:32 +02:00
292db4090f
* (Add) Mutators: Custom kernels, auto kernels and anchor where applicable * (Add) Mutator - Blur: Box Blur * (Add) Mutator - Blur: Filter2D * (Improvement) Mutator: Group all blurs into one window * (Fix) Mutators: Sample images was gone * (Fix) Mutator - Solidify: Remove the disabled input box * (Fix) Mutator - Pixel Dimming: Disable word wrap on pattern text box
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
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 System.Drawing;
|
|
using UVtools.Core;
|
|
|
|
|
|
namespace UVtools.GUI
|
|
{
|
|
public class Mutation
|
|
{
|
|
#region Properties
|
|
public LayerManager.Mutate Mutate { get; }
|
|
|
|
public string MenuName { get; }
|
|
public string Description { get; }
|
|
|
|
public Image Image { get; }
|
|
public Image MenuImage { get; }
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
public Mutation(LayerManager.Mutate mutate, string menuName, Image menuImage, string description, Image image = null)
|
|
{
|
|
Mutate = mutate;
|
|
MenuName = menuName ?? mutate.ToString();
|
|
Description = description;
|
|
MenuImage = menuImage ?? Properties.Resources.filter_filled_16x16;
|
|
Image = image;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|