2018-12-27 23:27:57 +00:00
|
|
|
namespace MediaBrowser.Model.Drawing
|
|
|
|
{
|
|
|
|
/// <summary>
|
2019-02-05 18:53:50 +00:00
|
|
|
/// Struct ImageDimensions
|
2018-12-27 23:27:57 +00:00
|
|
|
/// </summary>
|
2019-01-26 12:16:47 +00:00
|
|
|
public struct ImageDimensions
|
2018-12-27 23:27:57 +00:00
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the height.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The height.</value>
|
2019-01-26 12:16:47 +00:00
|
|
|
public int Height { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the width.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The width.</value>
|
2019-01-26 12:16:47 +00:00
|
|
|
public int Width { get; set; }
|
2018-12-27 23:27:57 +00:00
|
|
|
|
2019-01-26 12:16:47 +00:00
|
|
|
public bool Equals(ImageDimensions size)
|
2018-12-27 23:27:57 +00:00
|
|
|
{
|
|
|
|
return Width.Equals(size.Width) && Height.Equals(size.Height);
|
|
|
|
}
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
{
|
|
|
|
return string.Format("{0}-{1}", Width, Height);
|
|
|
|
}
|
|
|
|
|
2019-01-26 12:16:47 +00:00
|
|
|
public ImageDimensions(int width, int height)
|
2018-12-27 23:27:57 +00:00
|
|
|
{
|
2019-01-26 12:16:47 +00:00
|
|
|
Width = width;
|
|
|
|
Height = height;
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|
2019-01-13 19:31:15 +00:00
|
|
|
}
|