1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using PaintDotNet.Data.Param;
- using System;
- using System.Collections.Generic;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace PaintDotNet.Data.Action
- {
- /// <summary>
- /// 图片旋转
- /// </summary>
- 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);
- }
- }
- }
|