Action5020.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using PaintDotNet.Base;
  2. using PaintDotNet.Data.Param;
  3. using System.Collections.Generic;
  4. namespace PaintDotNet.Data.Action
  5. {
  6. /// <summary>
  7. /// 描绘
  8. /// </summary>
  9. public class Action5020 : ParamObject
  10. {
  11. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  12. {
  13. return Adjust.AdjustIntent.PortrayFunction(src, this.Lists);
  14. }
  15. public Action5020()
  16. {
  17. this.MenuId = ActionType.ActionPortray;
  18. this.OpenImage = "current";
  19. //第一个参数
  20. IntegerNumber one = new IntegerNumber(0, 255); //猜测最大是100->>255
  21. one.key = "Threshold";
  22. one.name = PdnResources.GetString("Menu.Threshold.text");
  23. one.initialValue = 10/*100*/;//初始值待确认
  24. one.value = 10/*100*/;
  25. lists.Add(one);
  26. //第二个参数
  27. OddNumber two = new OddNumber(3, 99/*100*/); //最大值待确认 49for example
  28. two.key = "Size";
  29. two.name = PdnResources.GetString("Menu.sizeed.text");
  30. two.initialValue = 15/*49*/;//初始值待确认
  31. two.value = 15/*49*/;
  32. lists.Add(two);
  33. }
  34. }
  35. }