共用方式為


IBasicVideo2.SetDestinationPosition

 
Microsoft DirectShow 9.0

IBasicVideo2.SetDestinationPosition

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

The SetDestinationPosition method sets the destination rectangle, relative to the video window.

Syntax

  objVideo
  .SetDestinationPosition(
    Left As Long, 
    Top As Long, 
    Width As Long, 
    Height As Long)

Parameters

Left

Specifies the x-coordinate of the destination rectangle, in pixels.

Top

Specifies the y-coordinate of the destination rectangle, in pixels.

Width

Specifies the width of the destination rectangle, in pixels.

Height

Specifies the height of the destination rectangle, in pixels.

Return Values

This method does not return a value.

Remarks

This method has the same effect as setting the IBasicVideo2.DestinationLeft, IBasicVideo2.DestinationTop, IBasicVideo2.DestinationWidth, and IBasicVideo2.DestinationHeight properties.

Requirements

Reference: Add a reference to ActiveMovie control type library.

Library: Quartz.dll.

See Also