12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using PaintDotNet.Data.Param;
- using System.Drawing;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 晶粒度手动测量
- /// </summary>
- public class Action11012111 : ActionAnalysis
- {
- public Action11012111() : base()
- {
- this.MenuId = ActionType.GrainSizeCutOffManualMethod;
- this.OpenImage = "current";
- //显示晶界
- BooleanObject five = new BooleanObject();
- five.key = "displaygrainboundaries";
- five.name = "显示晶界";
- five.initialValue = false;
- five.Value = false;
- lists.Add(five);
- //字号
- IntegerNumber one = new IntegerNumber(0, 50);
- one.key = "MainFontSize";
- one.name = "字号";
- one.initialValue = 1;
- one.value = 1;
- lists.Add(one);
- //字体颜色
- ColorNumber two = new ColorNumber();
- two.key = "MainFontColor";
- two.name = "字体颜色";
- two.Value = Color.Yellow.ToArgb();
- lists.Add(two);
- //线宽
- IntegerNumber three = new IntegerNumber(0, 50);
- three.key = "MainLineWidth";
- three.name = "线宽";
- three.initialValue = 1;
- three.value = 1;
- lists.Add(three);
- //截距颜色
- ColorNumber four = new ColorNumber();
- four.key = "MainLineColor";
- four.name = "截距颜色";
- four.Value = Color.Blue.ToArgb();
- lists.Add(four);
- }
- }
- }
|