IDCompositionRotateTransform3D::SetCenterZ (float) 方法 (dcomp.h)

更改 3D 旋转转换的 CenterZ 属性的值。 CenterZ 属性指定执行旋转的点的 z 坐标。 默认值为零。

语法

HRESULT SetCenterZ(
  [in] float centerZ
);

参数

[in] centerZ

类型: float

中心点的新 z 坐标。

返回值

类型: HRESULT

如果函数成功,则返回S_OK。 否则,将返回 HRESULT 错误代码。 有关 错误代码的列表,请参阅 DirectComposition 错误代码

注解

如果 centerZ 参数为 NaN、正无穷大或负无穷大,则此方法失败。

如果以前对 CenterZ 属性进行了动画处理,此方法将删除动画并将 CenterZ 属性设置为指定的静态值。

要求

要求
最低受支持的客户端 Windows 8 [仅限桌面应用]
最低受支持的服务器 Windows Server 2012 [仅限桌面应用]
目标平台 Windows
标头 dcomp.h
Library Dcomp.lib
DLL Dcomp.dll

另请参阅

IDCompositionRotateTransform3D

IDCompositionRotateTransform3D::SetCenterX

IDCompositionRotateTransform3D::SetCenterY