2018-11-30 02:41:06 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2018-12-04 13:45:09 +00:00
|
|
|
|
namespace RecrownedAthenaeum.DataTypes
|
2018-11-30 02:41:06 +00:00
|
|
|
|
{
|
|
|
|
|
public class Resolution : IComparable<Resolution>
|
|
|
|
|
{
|
|
|
|
|
public int Width, Height;
|
|
|
|
|
|
|
|
|
|
public Resolution(int width, int height)
|
|
|
|
|
{
|
|
|
|
|
Width = width;
|
|
|
|
|
Height = height;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Resolution()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int CompareTo(Resolution other)
|
|
|
|
|
{
|
|
|
|
|
return Area() - other.Area();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Width + "x" + Height;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int Area()
|
|
|
|
|
{
|
|
|
|
|
return Width * Height;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|