Share via


PathKeyFrameAnimation.InsertKeyFrame 方法

定義

多載

InsertKeyFrame(Single, CompositionPath)

插入主要畫面格。

InsertKeyFrame(Single, CompositionPath, CompositionEasingFunction)

插入具有指定之 Easing 的主要畫面格。

InsertKeyFrame(Single, CompositionPath)

插入主要畫面格。

public:
 virtual void InsertKeyFrame(float normalizedProgressKey, CompositionPath ^ path) = InsertKeyFrame;
/// [Windows.Foundation.Metadata.Overload("InsertKeyFrame")]
void InsertKeyFrame(float const& normalizedProgressKey, CompositionPath const& path);
[Windows.Foundation.Metadata.Overload("InsertKeyFrame")]
public void InsertKeyFrame(float normalizedProgressKey, CompositionPath path);
function insertKeyFrame(normalizedProgressKey, path)
Public Sub InsertKeyFrame (normalizedProgressKey As Single, path As CompositionPath)

參數

normalizedProgressKey
Single

float

主要畫面格的發生時間,以動畫 Duration 的百分比表示。 允許的值是從 0.0 到 1.0。

path
CompositionPath

用來定義主要畫面格值的路徑。

屬性

適用於

InsertKeyFrame(Single, CompositionPath, CompositionEasingFunction)

插入具有指定之 Easing 的主要畫面格。

public:
 virtual void InsertKeyFrame(float normalizedProgressKey, CompositionPath ^ path, CompositionEasingFunction ^ easingFunction) = InsertKeyFrame;
/// [Windows.Foundation.Metadata.Overload("InsertKeyFrameWithEasingFunction")]
void InsertKeyFrame(float const& normalizedProgressKey, CompositionPath const& path, CompositionEasingFunction const& easingFunction);
[Windows.Foundation.Metadata.Overload("InsertKeyFrameWithEasingFunction")]
public void InsertKeyFrame(float normalizedProgressKey, CompositionPath path, CompositionEasingFunction easingFunction);
function insertKeyFrame(normalizedProgressKey, path, easingFunction)
Public Sub InsertKeyFrame (normalizedProgressKey As Single, path As CompositionPath, easingFunction As CompositionEasingFunction)

參數

normalizedProgressKey
Single

float

主要畫面格的發生時間,以動畫 Duration 的百分比表示。 允許的值是從 0.0 到 1.0。

path
CompositionPath

用來定義主要畫面格值的路徑。

easingFunction
CompositionEasingFunction

在畫面之間插補時要使用的 Easing 函式。

屬性

適用於