Action5017.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Resources;
  2. using SmartCoalApplication.Core;
  3. using SmartCoalApplication.Core.Param;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace SmartCoalApplication.Data.Action
  11. {
  12. public class Action5017 : ParamObject
  13. {
  14. public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
  15. {
  16. return Adjust.AdjustIntent.MatRotate(src, this.Lists);
  17. }
  18. public Action5017()
  19. {
  20. this.MenuId = ActionType.ActionImageRotate;
  21. this.OpenImage = "current";
  22. ////第一个参数
  23. //IntegerNumber one = new IntegerNumber(-360, 360);
  24. //one.key = "Rotate";
  25. //one.name = PdnResources.GetString("Menu.Imagerotation.text");/*PdnResources.GetString("Menu.hong.Text")*/;
  26. //one.initialValue = 0;
  27. //one.value = 0;
  28. //第二个参数
  29. DecimalNumber two = new DecimalNumber(-360, 360);
  30. two.key = "Rotate";
  31. two.name = PdnResources.GetString("Menu.Imagerotation.text");
  32. two.DecimalPlaces = 2;
  33. two.initialValue = 0.0;
  34. two.value = 0.0;
  35. lists.Add(two);
  36. ColorNumber phaseColor = new ColorNumber();
  37. phaseColor.key = "phaseColor";
  38. phaseColor.name = PdnResources.GetString("Menu.backgroundcolor.text");
  39. phaseColor.Value = Color.FromArgb(225, 225, 225).ToArgb();
  40. phaseColor.initialValue = Color.FromArgb(225, 225, 225).ToArgb();
  41. //lists.Add(one);
  42. lists.Add(phaseColor);
  43. }
  44. }
  45. }