1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using PaintDotNet.Data.Param;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 虚化蒙版
- /// </summary>
- public class Action5022 : ParamObject
- {
- public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
- {
- return Adjust.AdjustIntent.BlurMaskFunction(src, this.Lists);
- }
- public Action5022()
- {
- this.MenuId = ActionType.ActionBlurMask;
- this.OpenImage = "current";
- //第一个参数
- DecimalNumber one = new DecimalNumber(0, 15);//1500
- one.key = "Radius";
- one.name = PdnResources.GetString("Menu.radius.text");
- one.DecimalPlaces = 3;
- one.initialValue = 0;
- one.value = 0;
- lists.Add(one);
- //第二个参数
- DecimalNumber two = new DecimalNumber(0, 300);
- two.key = "Amount";
- two.name = PdnResources.GetString("Menu.ImageProcessing.Sharpen.magnitude.text");
- two.DecimalPlaces = 1;
- two.initialValue = 0;
- two.value = 0;
- lists.Add(two);
- //第三个参数
- IntegerNumber three = new IntegerNumber(0, 255);
- three.key = "Threshold";
- three.name = PdnResources.GetString("Menu.Threshold.text");
- three.initialValue = 0;
- three.value = 0;
- lists.Add(three);
- }
- }
- }
|