Microsoft DirectX 9.0

IBasicVideo2.GetPreferredAspectRatio

The GetPreferredAspectRatio method retrieves the preferred aspect ratio of the video source, if any.

Syntax

objVideo.GetSourcePosition(
    ByRef AspectX As Long, 
    ByRef AspectY As Long) 

Parameters

AspectX

Variable that receives the X component of the aspect ratio.

AspectY

Variable that receives the Y component of the aspect ratio.

Return Values

This method does not return a value.

Remarks

This method retrieves a pair of dimensionless numbers whose ratio is equal to the aspect ratio. Depending on the video source, however, the method might return zero for both values.

See Also