IUIAnimationInterpolator2::SetInitialValueAndVelocity method
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
- initialValue [in]
-
The initial value.
- initialVelocity [in]
-
The initial velocity.
- cDimension [in]
-
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
|
Minimum supported client |
Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
None supported |
|
Header |
|
|
IDL |
|
|
DLL |
|
|
IID |
IID_IUIAnimationInterpolator2 is defined as EA76AFF8-EA22-4a23-A0EF-A6A966703518 |
See also