Table of Contents

Class VideoCaptureDeviceFormatInfo

Namespace
VisioForge.Core.Types.X.Sources
Assembly
VisioForge.Core.dll

Class VideoCaptureDeviceFormatInfo.

public class VideoCaptureDeviceFormatInfo : IComparable

Inheritance

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

structure Structure

The structure.

Properties

AspectRatio

Gets or sets the aspect ratio.

public Tuple<float, float> AspectRatio { get; set; }

Property Value

Tuple<float, float>

Format

Gets or sets the format.

public string Format { get; set; }

Property Value

string

FrameRateList

Gets or sets the frame rate list.

public List<VideoFrameRate> FrameRateList { get; }

Property Value

List<VideoFrameRate>

Height

Gets or sets the height.

public int Height { get; set; }

Property Value

int

Name

Gets the name.

public string Name { get; }

Property Value

string

Width

Gets or sets the width.

public int Width { get; set; }

Property Value

int

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

obj object

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 obj in the sort order. Zero This instance occurs in the same position in the sort order as obj. Greater than zero This instance follows obj in the sort order.

Equals(object)

Determines whether the specified Object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified Object is equal to this instance; otherwise, false.

Exceptions

NotImplementedException

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

string

A String that represents this instance.

Operators

operator ==(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)

Implements the == operator.

public static bool operator ==(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)

Parameters

left VideoCaptureDeviceFormatInfo

The left.

right VideoCaptureDeviceFormatInfo

The right.

Returns

bool

The result of the operator.

operator >(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)

Implements the > operator.

public static bool operator >(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)

Parameters

left VideoCaptureDeviceFormatInfo

The left.

right VideoCaptureDeviceFormatInfo

The right.

Returns

bool

The result of the operator.

operator >=(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)

Implements the >= operator.

public static bool operator >=(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)

Parameters

left VideoCaptureDeviceFormatInfo

The left.

right VideoCaptureDeviceFormatInfo

The right.

Returns

bool

The result of the operator.

operator !=(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)

Implements the != operator.

public static bool operator !=(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)

Parameters

left VideoCaptureDeviceFormatInfo

The left.

right VideoCaptureDeviceFormatInfo

The right.

Returns

bool

The result of the operator.

operator <(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)

Implements the < operator.

public static bool operator <(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)

Parameters

left VideoCaptureDeviceFormatInfo

The left.

right VideoCaptureDeviceFormatInfo

The right.

Returns

bool

The result of the operator.

operator <=(VideoCaptureDeviceFormatInfo, VideoCaptureDeviceFormatInfo)

Implements the <= operator.

public static bool operator <=(VideoCaptureDeviceFormatInfo left, VideoCaptureDeviceFormatInfo right)

Parameters

left VideoCaptureDeviceFormatInfo

The left.

right VideoCaptureDeviceFormatInfo

The right.

Returns

bool

The result of the operator.