語言

ColorKeyFrame.InterpolateValue(Color, Double) 方法

定義

回傳特定關鍵影格在提供進度增量處的插值值。

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

參數

baseValue
Color

動畫的價值;通常是前一個關鍵影格的值。

keyFrameProgress
Double

一個介於 0.0 到 1.0 之間的值(含含),用來指定該關鍵幀所經過的時間百分比。

傳回

根據指定的基值與進度,該關鍵影格的輸出值。

例外狀況

當 keyFrameProgress 不介於 0.0 到 1.0 之間時,會發生。

適用於