IXRSplineColorKeyFrame::GetKeySpline (Compact 2013)
3/28/2014
This method retrieves two control points that define animation progress for this key frame.
Syntax
virtual HRESULT STDMETHODCALLTYPE GetKeySpline(
IXRKeySpline** ppKeySpline
) = 0;
Parameters
- ppKeySpline
[out] Address of a pointer to an IXRKeySpline object that contains the two control points that specify the cubic Bézier curve that defines the progress of the key frame.
Return Value
Returns an HRESULT that indicates success or failure.
Remarks
A cubic Bézier curve is defined 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.SplineColorKeyFrame
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |