Skip to content

GetNearestVideoHeight

function

Delphi
function GetNearestVideoHeight (PreferredVideoWidth: LongInt; PreferredVideoHeight: LongInt): LongInt;
C++Builder
System::LongInt __fastcall GetNearestVideoHeight(System::LongInt PreferredVideoWidth, System::LongInt PreferredVideoHeight);
C#
public int GetNearestVideoHeight(int PreferredVideoWidth, int PreferredVideoHeight);
VB.NET
Public Function GetNearestVideoHeight(PreferredVideoWidth As Integer, PreferredVideoHeight As Integer) As Integer
C++/Qt
int GetNearestVideoHeight (int PreferredVideoWidth, int PreferredVideoHeight);

Retrieves the nearest video height to a given video width and height.

Remarks

Retrieves the nearest video height to a given video width and height, available on the current video capture device .

Unlike UseNearestVideoSize , this function simply requests the nearest height available for the specified size, without selecting it on the current video capture device .