Action11012Measurement.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using PaintDotNet.Data.Param;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Drawing;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace PaintDotNet.Data.Action
  9. {
  10. public class Action11012Measurement: ActionAnalysis
  11. {
  12. public Action11012Measurement() {
  13. //线宽
  14. IntegerNumber one = new IntegerNumber(1, 50);
  15. one.key = "lineWidth";
  16. one.name = "线宽";
  17. one.initialValue = 7;
  18. one.value = 7;
  19. lists.Add(one);
  20. //颜色
  21. ColorNumber two = new ColorNumber();
  22. two.key = "lineColor";
  23. two.name = "颜色";
  24. two.Value = Color.Green.ToArgb();
  25. lists.Add(two);
  26. ////最大卡尺直径
  27. //DecimalNumber three = new DecimalNumber(0, 99999999);
  28. //three.key = "maxDiameter";
  29. //three.name = "最大卡尺直径";
  30. //three.DecimalPlaces = 2;
  31. //three.initialValue = 0;
  32. //three.value = 0;
  33. //lists.Add(three);
  34. ////垂直卡尺直径
  35. //DecimalNumber four = new DecimalNumber(0, 99999999);
  36. //four.key = "minDiameter";
  37. //four.name = "垂直卡尺直径";
  38. //four.DecimalPlaces = 2;
  39. //four.initialValue = 0;
  40. //four.value = 0;
  41. //lists.Add(four);
  42. }
  43. }
  44. }