共用方式為


IAMTimeline::EnableTransitions

 
Microsoft DirectShow 9.0

IAMTimeline::EnableTransitions

The EnableTransitions method enables or disables all transitions in the timeline. If transitions are disabled, the render engines treats them as cuts; that is, the rendered output jumps instantly from one track to the next. The default cut point is halfway through the duration of the transition. You can change the cut point by calling the IAMTimelineTrans::SetCutPoint method on the transition. Disabled transitions are not removed from the timeline.

Syntax

  HRESULT EnableTransitions(
    BOOL fEnabled
);

Parameters

fEnabled

Boolean value that specifies whether to enable or disable transitions. If TRUE, transitions are enabled. If FALSE, transitions are disabled.

Return Value

Returns S_OK.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also