Struct Resolution
Struct representing a video resolution specified in X and Y dimension.
Assembly: Emby.Media.Model.dll
public struct Resolution : IComparable<Resolution>, IEquatable<Resolution>
Constructors
Initializes a new instance of the Resolution struct.
Declaration
public Resolution(int width, int height)
Parameters
Type |
Name |
Description |
System.Int32 |
width |
The resolution width.
|
System.Int32 |
height |
The resolution height.
|
Fields
Gets a resolution that has a width and height of 0.
Declaration
public static Resolution Empty
Field Value
Properties
Gets the resolution height.
Declaration
public readonly int Height { get; }
Property Value
Type |
Description |
System.Int32 |
The resolution height.
|
Gets the resolution width.
Declaration
public readonly int Width { get; }
Property Value
Type |
Description |
System.Int32 |
The resolution width.
|
Methods
Declaration
public int CompareTo(Resolution other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Declaration
public bool Equals(Resolution other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Declaration
public static bool operator ==(Resolution left, Resolution right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator>(Resolution left, Resolution right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator >=(Resolution left, Resolution right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(Resolution left, Resolution right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator <(Resolution left, Resolution right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator <=(Resolution left, Resolution right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IComparable<T>
System.IEquatable<T>
Extension Methods
See Also
System.IComparable
System.IEquatable<T>