using Resources; using SmartCoalApplication.Core; using SmartCoalApplication.Core.Param; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SmartCoalApplication.Data.Action { public class Action5017 : ParamObject { public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src) { return Adjust.AdjustIntent.MatRotate(src, this.Lists); } public Action5017() { this.MenuId = ActionType.ActionImageRotate; this.OpenImage = "current"; ////第一个参数 //IntegerNumber one = new IntegerNumber(-360, 360); //one.key = "Rotate"; //one.name = PdnResources.GetString("Menu.Imagerotation.text");/*PdnResources.GetString("Menu.hong.Text")*/; //one.initialValue = 0; //one.value = 0; //第二个参数 DecimalNumber two = new DecimalNumber(-360, 360); two.key = "Rotate"; two.name = PdnResources.GetString("Menu.Imagerotation.text"); two.DecimalPlaces = 2; two.initialValue = 0.0; two.value = 0.0; lists.Add(two); ColorNumber phaseColor = new ColorNumber(); phaseColor.key = "phaseColor"; phaseColor.name = PdnResources.GetString("Menu.backgroundcolor.text"); phaseColor.Value = Color.FromArgb(225, 225, 225).ToArgb(); phaseColor.initialValue = Color.FromArgb(225, 225, 225).ToArgb(); //lists.Add(one); lists.Add(phaseColor); } } }