mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
22 lines
698 B
C#
22 lines
698 B
C#
using Eto.Drawing;
|
|
using NAPS2.EtoForms.Widgets;
|
|
|
|
namespace NAPS2.EtoForms.Ui;
|
|
|
|
public class SharpenForm : UnaryImageFormBase
|
|
{
|
|
private readonly SliderWithTextBox _sharpenSlider = new();
|
|
|
|
public SharpenForm(Naps2Config config, UiImageList imageList, ThumbnailController thumbnailController,
|
|
IIconProvider iconProvider) :
|
|
base(config, imageList, thumbnailController)
|
|
{
|
|
Icon = new Icon(1f, Icons.sharpen.ToEtoImage());
|
|
Title = UiStrings.Sharpen;
|
|
|
|
_sharpenSlider.Icon = iconProvider.GetIcon("sharpen");
|
|
Sliders = [_sharpenSlider];
|
|
}
|
|
|
|
protected override List<Transform> Transforms => [new SharpenTransform(_sharpenSlider.IntValue)];
|
|
} |