IDCompositionDevice2::CreateTransformGroup method (dcomp.h)

Creates a 2D transform group object that holds an array of 2D transform objects.

Syntax

HRESULT CreateTransformGroup(
  [in]  IDCompositionTransform **transforms,
  [in]  UINT                   elements,
  [out] IDCompositionTransform **transformGroup
);

Parameters

[in] transforms

Type: IDCompositionTransform**

An array of 2D transform objects that make up this transform group.

[in] elements

Type: UINT

The number of elements in the transforms array.

[out] transformGroup

Type: IDCompositionTransform**

The new transform group object. This parameter must not be NULL.

Return value

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See DirectComposition Error Codes for a list of error codes.

Remarks

The array entries in a transform group cannot be changed. However, each transform in the array can be modified through its own property setting methods. If a transform in the array is modified, the change is reflected in the computed matrix of the transform group.

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

IDCompositionVisual::SetTransform