123456789101112131415161718192021222324252627282930313233343536373839 |
- using PaintDotNet.Base;
- using PaintDotNet.Data.Param;
- using System.Collections.Generic;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 描绘
- /// </summary>
- public class Action5020 : ParamObject
- {
- public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
- {
- return Adjust.AdjustIntent.PortrayFunction(src, this.Lists);
- }
- public Action5020()
- {
- this.MenuId = ActionType.ActionPortray;
- this.OpenImage = "current";
- //第一个参数
- IntegerNumber one = new IntegerNumber(0, 255); //猜测最大是100->>255
- one.key = "Threshold";
- one.name = PdnResources.GetString("Menu.Threshold.text");
- one.initialValue = 10/*100*/;//初始值待确认
- one.value = 10/*100*/;
- lists.Add(one);
- //第二个参数
- OddNumber two = new OddNumber(3, 99/*100*/); //最大值待确认 49for example
- two.key = "Size";
- two.name = PdnResources.GetString("Menu.sizeed.text");
- two.initialValue = 15/*49*/;//初始值待确认
- two.value = 15/*49*/;
- lists.Add(two);
- }
- }
- }
|