次の方法で共有


IXRSplineColorKeyFrame::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 cubic Bézier curve which 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

See Also

Reference

IXRSplineColorKeyFrame
IXRSplineColorKeyFrame::GetKeySpline