IDCompositionDevice2::CreateTranslateTransform3D method (dcomp.h)

Creates a 3D translation transform object.

Syntax

HRESULT CreateTranslateTransform3D(
  [out] IDCompositionTranslateTransform3D **translateTransform3D
);

Parameters

[out] translateTransform3D

Type: IDCompositionTranslateTransform3D**

The new 3D translation transform object. This parameter must not be NULL.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

A newly created 3D translation transform has a static value of 0 for the OffsetX, OffsetY, and OffsetZ properties.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header dcomp.h
Library Dcomp.lib
DLL Dcomp.dll

See also

IDCompositionDevice2

IDCompositionEffectGroup::SetTransform3D

IDCompositionVisual::SetEffect