using PaintDotNet.Base; using PaintDotNet.Data.Param; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PaintDotNet.Data.Action { /// /// 色度/饱和度/亮度 /// public class Action5015 : ParamObject { public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src) { return Adjust.AdjustIntent.BshTransferFunction(src, this.Lists); } public Action5015() { this.MenuId = ActionType.ActionHSB; this.OpenImage = "current"; //第一个参数 IntegerNumber one = new IntegerNumber(0, 200); one.key = "Hue"; one.name = PdnResources.GetString("Menu.ImageProcessing.adjust.Chroma.text"); one.initialValue = 100; one.value = 100; lists.Add(one); //第二个参数 IntegerNumber two = new IntegerNumber(0, 200); two.key = "Saturation"; two.name = PdnResources.GetString("Menu.saturation.text"); two.initialValue = 100; two.value = 100; lists.Add(two); //第三个参数 IntegerNumber three = new IntegerNumber(0, 200); three.key = "Brightness"; three.name = PdnResources.GetString("Menu.luminance.text"); three.initialValue = 100; three.value = 100; lists.Add(three); } } }