IUIAnimationInterpolator2::SetInitialValueAndVelocity method (uianimation.h)

Sets the initial value and velocity of the transition for the given dimension.

Syntax

HRESULT SetInitialValueAndVelocity(
  [in] DOUBLE *initialValue,
  [in] DOUBLE *initialVelocity,
  [in] UINT   cDimension
);

Parameters

[in] initialValue

The initial value.

[in] initialVelocity

The initial velocity.

[in] cDimension

The dimension in which to set the initial value or velocity of the transition.

Return value

Returns S_OK if successful; otherwise an HRESULT error code. See Windows Animation Error Codes for a list of error codes.

Remarks

Windows Animation always calls SetInitialValueAndVelocity before calling the other methods of IUIAnimationInterpolator2 at different offsets. However, SetInitialValueAndVelocity can be called multiple times with different parameters. Interpolators can cache internal state to improve performance, but they must update this cached state each time SetInitialValueAndVelocity is called and ensure that the results of subsequent calls to these methods reflect the updated state.

Requirements

Requirement Value
Minimum supported client Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header uianimation.h
DLL UIAnimation.dll

See also

IUIAnimationInterpolator2