GetNearestVideoWidth
Delphi
function GetNearestVideoWidth (PreferredVideoWidth: LongInt; PreferredVideoHeight: LongInt): LongInt;
C++Builder
System::LongInt __fastcall GetNearestVideoWidth(System::LongInt PreferredVideoWidth, System::LongInt PreferredVideoHeight);
C#
public int GetNearestVideoWidth(int PreferredVideoWidth, int PreferredVideoHeight);
VB.NET
Public Function GetNearestVideoWidth(PreferredVideoWidth As Integer, PreferredVideoHeight As Integer) As Integer
C++/Qt
int GetNearestVideoWidth (int PreferredVideoWidth, int PreferredVideoHeight);
Retrieves the nearest video width to a given video width and height, available on the current video capture device.
Unlike UseNearestVideoSize, this function simply requests the nearest width available for the specified size, without selecting it on the current video capture device.