Struct VideoSize
[Serializable]
public readonly struct VideoSize : IStringWrapper, IEquatable<VideoSize>
- Implements
-
IStringWrapperIEquatable<VideoSize>
Constructors
VideoSize(int, int)
public VideoSize(int width, int height)
Parameters
widthintheightint
VideoSize(string)
public VideoSize(string value)
Parameters
valuestring
Fields
Auto
public const string Auto = "auto"
Field Value
- string
R1024x1024
public const string R1024x1024 = "1024x1024"
Field Value
- string
R1080x1080
public const string R1080x1080 = "1080x1080"
Field Value
- string
R1080x1350
public const string R1080x1350 = "1080x1350"
Field Value
- string
R1080x1920
public const string R1080x1920 = "1080x1920"
Field Value
- string
R1280x720
public const string R1280x720 = "1280x720"
Field Value
- string
R1440x2560
public const string R1440x2560 = "1440x2560"
Field Value
- string
R1920x1080
public const string R1920x1080 = "1920x1080"
Field Value
- string
R2048x2048
public const string R2048x2048 = "2048x2048"
Field Value
- string
R2160x3840
public const string R2160x3840 = "2160x3840"
Field Value
- string
R2560x1440
public const string R2560x1440 = "2560x1440"
Field Value
- string
R3840x2160
public const string R3840x2160 = "3840x2160"
Field Value
- string
R720x1280
public const string R720x1280 = "720x1280"
Field Value
- string
Properties
IsLandscape
public bool IsLandscape { get; }
Property Value
- bool
IsPortrait
public bool IsPortrait { get; }
Property Value
- bool
IsSquare
public bool IsSquare { get; }
Property Value
- bool
Value
public string Value { get; }
Property Value
- string
Methods
Equals(VideoSize)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(VideoSize other)
Parameters
otherVideoSizeAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
GetSoraDisplayedValues(MediaAspect)
public static Dictionary<string, string> GetSoraDisplayedValues(OpenAITypes.MediaAspect aspect)
Parameters
aspectOpenAITypes.MediaAspect
Returns
- Dictionary<string, string>
GetSoraSupportedSizes(MediaAspect)
public static string[] GetSoraSupportedSizes(OpenAITypes.MediaAspect aspect)
Parameters
aspectOpenAITypes.MediaAspect
Returns
- string[]
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
TryGetWidthHeight(out int, out int)
public bool TryGetWidthHeight(out int w, out int h)
Parameters
winthint
Returns
- bool
TryParse(string, out VideoSize)
public static bool TryParse(string s, out VideoSize size)
Parameters
sstringsizeVideoSize
Returns
- bool
Operators
implicit operator string(VideoSize)
public static implicit operator string(VideoSize size)
Parameters
sizeVideoSize
Returns
- string
implicit operator VideoSize(string)
public static implicit operator VideoSize(string value)
Parameters
valuestring