IUIAnimationTransitionLibrary::CreateCubicTransition Method

[This documentation is preliminary and is subject to change.]
Creates a cubic transition.

Syntax

HRESULT CreateCubicTransition(
  [in]   UI_ANIMATION_SECONDS duration,
  [in]   DOUBLE finalValue,
  [in]   DOUBLE finalVelocity,
  [out]  IUIAnimationTransition **transition
);

Parameters

  • duration [in]
    The duration of the transition.

  • finalValue [in]
    The value of the animation variable at the end of the transition.

  • finalVelocity [in]
    The velocity of the variable at the end of the transition.

  • transition [out]
    The new cubic transition.

Return Value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See UIAnimation Error Codes for a complete list of error codes.

Remarks

During cubic transition, the value of the animation variable changes from initial value to a final value over the duration of a transition ending at a specified velocity.

The figure below shows the effect on an animation variable over time during a cubic transition.

CubicTransition

Requirements

Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Header UIAnimation.h
IDL UIAnimation.idl
DLL UIAnimation.dll

See Also

IUIAnimationTransitionLibraryCreateAccelerateDecelerateTransitionCreateParabolicTransitionFromAcceleration

Send comments about this topic to Microsoft

Build date: 3/4/2009