Class VideoCaptureDeviceFormatInfo
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
Class VideoCaptureDeviceFormatInfo.
public class VideoCaptureDeviceFormatInfo : IComparableInheritance
Implements
Inherited Members
Constructors
VideoCaptureDeviceFormatInfo()
Initializes a new instance of the VisioForge.Core.Types.X.Sources.VideoCaptureDeviceFormatInfo class.
public VideoCaptureDeviceFormatInfo()VideoCaptureDeviceFormatInfo(Structure)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.VideoCaptureDeviceFormatInfo class.
public VideoCaptureDeviceFormatInfo(Structure structure)Parameters
structureStructure-
The structure.
Properties
AspectRatio
Gets or sets the aspect ratio.
public Tuple<float, float> AspectRatio { get; set; }Property Value
Format
Gets or sets the format.
public string Format { get; set; }Property Value
FrameRateList
Gets or sets the frame rate list.
public List<VideoFrameRate> FrameRateList { get; }Property Value
Height
Gets or sets the height.
public int Height { get; set; }Property Value
Name
Gets the name.
public string Name { get; }Property Value
Width
Gets or sets the width.
public int Width { get; set; }Property Value
Methods
CompareTo(object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(object obj)Parameters
objobject-
An object to compare with this instance.
Returns
- int
-
A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes
objin the sort order. Zero This instance occurs in the same position in the sort order asobj. Greater than zero This instance followsobjin the sort order.
Equals(object)
Determines whether the specified Object is equal to this instance.
public override bool Equals(object obj)Parameters
objobject-
The object to compare with the current object.
Returns
Exceptions
GetFrameRateRangeAsStringList()
Gets the frame rate range as string list.
public string[] GetFrameRateRangeAsStringList()Returns
- string[]
-
System.String[].
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()Returns
- int
-
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
ToFormat()
Converts to VideoCaptureDeviceFormat.
public VideoCaptureDeviceFormat ToFormat()Returns
- VideoCaptureDeviceFormat
-
VideoCaptureDeviceFormat.
ToString()
Returns a String that represents this instance.
public override string ToString()Returns
Operators
operator ==(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the == operator.
public static bool operator ==(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)Parameters
leftVideoCaptureDeviceFormatInfo-
The left.
rightVideoCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator >(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the > operator.
public static bool operator >(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)Parameters
leftVideoCaptureDeviceFormatInfo-
The left.
rightVideoCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator >=(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the >= operator.
public static bool operator >=(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)Parameters
leftVideoCaptureDeviceFormatInfo-
The left.
rightVideoCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator !=(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the != operator.
public static bool operator !=(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)Parameters
leftVideoCaptureDeviceFormatInfo-
The left.
rightVideoCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator <(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the < operator.
public static bool operator <(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)Parameters
leftVideoCaptureDeviceFormatInfo-
The left.
rightVideoCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator <=(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the <= operator.
public static bool operator <=(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)Parameters
leftVideoCaptureDeviceFormatInfo-
The left.
rightVideoCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.