1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using PaintDotNet.Base;
- using PaintDotNet.Data.Param;
- using System.Collections.Generic;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 色彩平衡
- /// </summary>
- 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);
- }
- }
- }
|