IBasicVideo2.GetPreferredAspectRatio

Note  This topic is deprecated. It applies to Visual Basic 6.0. DirectShow is not supported for Visual Basic .NET or C#.

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

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 Value

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.

Requirements

Type Library

ActiveMovie control type library

DLL

Quartz.dll

See Also

IBasicVideo2 Object

 

 

Send comments about this topic to Microsoft

Build date: 8/31/2010