IBasicVideo2.GetPreferredAspectRatio
Microsoft DirectShow 9.0 |
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.
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.
Requirements
Reference: Add a reference to ActiveMovie control type library.
Library: Quartz.dll.
See Also