IXRSplinePointKeyFrame::SetKeySpline (Compact 2013)
3/28/2014
This method sets two control points that define animation progress for this key frame.
Syntax
virtual HRESULT STDMETHODCALLTYPE SetKeySpline(
IXRKeySpline* pKeySpline
) = 0;
Parameters
- pKeySpline
[in] Pointer to an IXRKeySpline object that contains the two control points that specify the new cubic Bézier curve that defines the progress of this key frame.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
A cubic Bézier curve is define by a starting point, an endpoint, and two control points. The two coordinates in the key spline define those two control points in the Bézier curve. When describing key splines, the starting point of the Bézier curve is always 0, and the endpoint is always 1. This is why you define only the control points. The resulting curve specifies how an animation is interpolated during a time segment. That is, the curve represents the rate of change in the target value of the animation.
.NET Framework Equivalent
System.Windows.Media.Animation.SplinePointKeyFrame
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |