CompositionEasingFunction.CreatePowerEasingFunction 方法

定义

创建 PowerEasingFunction 的实例。

public:
 static PowerEasingFunction ^ CreatePowerEasingFunction(Compositor ^ owner, CompositionEasingFunctionMode mode, float power);
 static PowerEasingFunction CreatePowerEasingFunction(Compositor const& owner, CompositionEasingFunctionMode const& mode, float const& power);
public static PowerEasingFunction CreatePowerEasingFunction(Compositor owner, CompositionEasingFunctionMode mode, float power);
function createPowerEasingFunction(owner, mode, power)
Public Shared Function CreatePowerEasingFunction (owner As Compositor, mode As CompositionEasingFunctionMode, power As Single) As PowerEasingFunction

参数

owner
Compositor

用于创建缓动函数的 Compositor

mode
CompositionEasingFunctionMode

用于指定动画内插方式的枚举值之一。

power
Single

float

动画内插的指数幂。 此值必须大于等于 0。

返回

返回创建的 PowerEasingFunction 对象。

Windows 要求

设备系列
Windows 10, version 2104 (在 10.0.20348.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v12.0 中引入)

适用于