1234567891011121314151617181920212223242526272829303132333435363738 |
- using PaintDotNet.Data.Param;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 图像间操作-乘
- /// </summary>
- public class Action5052 : ParamObject
- {
- public override OpenCvSharp.Mat PerformProcess(OpenCvSharp.Mat src)
- {
- return Adjust.InterImageIntent.ShadingMultiply(src, this.Lists);
- }
- public Action5052()
- {
- this.MenuId = ActionType.ActionImageMultiplication;
- this.OpenImage = "current";
- //第一个参数
- InputMatObject one = new InputMatObject();
- one.key = "Src2";
- one.name = PdnResources.GetString("Menu.intoimage.Text")+"2";
- one.FriendlyName = PdnResources.GetString("Untitled.FriendlyName");//待修改中文资源-scc备注 20191218
- //one.FilePath = null;
- lists.Add(one);
- //第二个参数
- DecimalNumber two = new DecimalNumber(0, 20);
- two.key = "Factor";
- two.name = "Factor";
- two.DecimalPlaces = 1;
- two.initialValue = 1.0;
- two.value = 1.0;
- lists.Add(two);
- }
- }
- }
|