MediaCaptureVideoMode Class

A native video mode of a camera or a screen: its size and its frame rate.

public sealed class MediaCaptureVideoMode : IEquatable<MediaCaptureVideoMode>
Implements

Constructors

NameDescription
MediaCaptureVideoMode(int, int, double)A native video mode of a camera or a screen: its size and its frame rate.

MediaCaptureVideoMode(int, int, double)

MediaCaptureBackend.cs

A native video mode of a camera or a screen: its size and its frame rate.

public MediaCaptureVideoMode(int Width, int Height, double FrameRate)

Parameters

Width int
The width of the frames, in pixels.
Height int
The height of the frames, in pixels.
FrameRate double
The number of frames per second.

Properties

NameDescription
FrameRateThe number of frames per second.
HeightThe height of the frames, in pixels.
WidthThe width of the frames, in pixels.

The number of frames per second.

public double FrameRate { get; init; }

Property value

double

The height of the frames, in pixels.

public int Height { get; init; }

Property value

int

The width of the frames, in pixels.

public int Width { get; init; }

Property value

int

Methods

NameDescription
Deconstruct(int, int, double)
Equals(MediaCaptureVideoMode?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(int, int, double)

public void Deconstruct(out int Width, out int Height, out double FrameRate)

Parameters

Width int
Height int
FrameRate double

No documentation is available.

Equals overloads

Equals(MediaCaptureVideoMode?)

public bool Equals(MediaCaptureVideoMode? other)
Parameters
other MediaCaptureVideoMode?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(MediaCaptureVideoMode?, MediaCaptureVideoMode?)
operator !=(MediaCaptureVideoMode?, MediaCaptureVideoMode?)

operator ==(MediaCaptureVideoMode?, MediaCaptureVideoMode?)

public static bool operator ==(MediaCaptureVideoMode? left, MediaCaptureVideoMode? right)

No documentation is available.

operator !=(MediaCaptureVideoMode?, MediaCaptureVideoMode?)

public static bool operator !=(MediaCaptureVideoMode? left, MediaCaptureVideoMode? right)

No documentation is available.