Class VideoCaptureDeviceFormatInfo
Class VideoCaptureDeviceFormatInfo.
Implements
Inherited Members
Namespace: VisioForge.Core.Types.X.Sources
Assembly: VisioForge.Core.dll
Syntax
public class VideoCaptureDeviceFormatInfo : IComparable
Constructors
VideoCaptureDeviceFormatInfo()
Initializes a new instance of the VideoCaptureDeviceFormatInfo class.
Declaration
public VideoCaptureDeviceFormatInfo()
VideoCaptureDeviceFormatInfo(Structure)
Initializes a new instance of the VideoCaptureDeviceFormatInfo class.
Declaration
public VideoCaptureDeviceFormatInfo(Structure structure)
Parameters
Type | Name | Description |
---|---|---|
Structure | structure | The structure. |
Properties
AspectRatio
Gets or sets the aspect ratio.
Declaration
public Tuple<float, float> AspectRatio { get; set; }
Property Value
Type | Description |
---|---|
Tuple<float, float> | The aspect ratio. |
Format
Gets or sets the format.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
string | The format. |
FrameRateList
Gets or sets the frame rate list.
Declaration
public List<VideoFrameRate> FrameRateList { get; }
Property Value
Type | Description |
---|---|
List<VideoFrameRate> | The frame rate list. |
Height
Gets or sets the height.
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
int | The height. |
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string | The name. |
Width
Gets or sets the width.
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
int | The width. |
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.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | An object to compare with this instance. |
Returns
Type | Description |
---|---|
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 |
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Exceptions
Type | Condition |
---|---|
NotImplementedException |
GetFrameRateRangeAsStringList()
Gets the frame rate range as string list.
Declaration
public string[] GetFrameRateRangeAsStringList()
Returns
Type | Description |
---|---|
string[] | System.String[]. |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
ToFormat()
Converts to VideoCaptureDeviceFormat.
Declaration
public VideoCaptureDeviceFormat ToFormat()
Returns
Type | Description |
---|---|
VideoCaptureDeviceFormat | VideoCaptureDeviceFormat. |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents this instance. |
Overrides
Operators
operator ==(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the == operator.
Declaration
public static bool operator ==(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)
Parameters
Type | Name | Description |
---|---|---|
VideoCaptureDeviceFormatInfo | left | The left. |
VideoCaptureDeviceFormatInfo | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator >(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the > operator.
Declaration
public static bool operator >(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)
Parameters
Type | Name | Description |
---|---|---|
VideoCaptureDeviceFormatInfo | left | The left. |
VideoCaptureDeviceFormatInfo | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator >=(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the >= operator.
Declaration
public static bool operator >=(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)
Parameters
Type | Name | Description |
---|---|---|
VideoCaptureDeviceFormatInfo | left | The left. |
VideoCaptureDeviceFormatInfo | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the != operator.
Declaration
public static bool operator !=(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)
Parameters
Type | Name | Description |
---|---|---|
VideoCaptureDeviceFormatInfo | left | The left. |
VideoCaptureDeviceFormatInfo | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator <(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the < operator.
Declaration
public static bool operator <(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)
Parameters
Type | Name | Description |
---|---|---|
VideoCaptureDeviceFormatInfo | left | The left. |
VideoCaptureDeviceFormatInfo | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator <=(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)
Implements the <= operator.
Declaration
public static bool operator <=(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)
Parameters
Type | Name | Description |
---|---|---|
VideoCaptureDeviceFormatInfo | left | The left. |
VideoCaptureDeviceFormatInfo | right | The right. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |