RectKeyFrame.InterpolateValue(Rect, Double) 方法

定义

返回特定关键帧在提供的进度增量处的内插值。Returns the interpolated value of a specific key frame at the progress increment provided.

public:
 System::Windows::Rect InterpolateValue(System::Windows::Rect baseValue, double keyFrameProgress);
public System.Windows.Rect InterpolateValue (System.Windows.Rect baseValue, double keyFrameProgress);
member this.InterpolateValue : System.Windows.Rect * double -> System.Windows.Rect
Public Function InterpolateValue (baseValue As Rect, keyFrameProgress As Double) As Rect

参数

baseValue
Rect

动画起始值。The value to animate from.

keyFrameProgress
Double

一个介于 0.0 和 1.0 之间的值(包含 0.0 和 1.0),该值指定此关键帧已经过去的时间的百分比。A value between 0.0 and 1.0, inclusive, that specifies the percentage of time that has elapsed for this key frame.

返回

给定了指定基值和进度时此关键帧的输出值。The output value of this key frame given the specified base value and progress.

异常

keyFrameProgress 不在 0.0 和 1.0 之间(包含 0.0 和 1.0)时发生。Occurs if keyFrameProgress is not between 0.0 and 1.0, inclusive.

注解

基值通常是正在进行动画处理的属性的初始值或Value前一个关键帧的值。The base value is typically the initial value of the property being animated or the Value of the previous key frame.

当为0.0 时baseValue keyFrameProgress , 大多数实现将返回的值。Most implementations will return the value of baseValue when keyFrameProgress is 0.0.

适用于