using PaintDotNet.Base; using PaintDotNet.Data.Param; using System.Collections.Generic; namespace PaintDotNet.Data.Action { /// /// 色彩平衡 /// public class Action5013 : ParamObject { public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src) { return Adjust.AdjustIntent.ColorBalanceFunction(src, this.Lists); } public Action5013() { this.MenuId = ActionType.ActionColorBalance; this.OpenImage = "current"; //第一个参数 IntegerNumber one = new IntegerNumber(-100, 100); one.key = "Red"; one.name = PdnResources.GetString("Menu.hong.Text"); one.initialValue = 0; one.value = 0; lists.Add(one); //第二个参数 IntegerNumber two = new IntegerNumber(-100, 100); two.key = "Green"; two.name = PdnResources.GetString("Menu.lv.Text"); two.initialValue = 0; two.value = 0; lists.Add(two); //第三个参数 IntegerNumber three = new IntegerNumber(-100, 100); three.key = "Blue"; three.name = PdnResources.GetString("Menu.lan.Text"); three.initialValue = 0; three.value = 0; lists.Add(three); } } }