Files
better-genshin-impact/BetterGenshinImpact/Core/Config/RectConfig.cs
2024-03-10 12:55:11 +08:00

31 lines
566 B
C#

using OpenCvSharp;
using System;
namespace BetterGenshinImpact.Core.Config;
[Obsolete("Replace with original OpenCvSharp.Rect")]
public class RectConfig
{
public RectConfig()
{
}
public RectConfig(int x, int y, int width, int height)
{
X = x;
Y = y;
Width = width;
Height = height;
}
public int X { get; set; }
public int Y { get; set; }
public int Width { get; set; }
public int Height { get; set; }
public Rect ToRect()
{
return new Rect(X, Y, Width, Height);
}
}