mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-26 09:39:49 +08:00
31 lines
566 B
C#
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);
|
|
}
|
|
}
|