IDCompositionVisual::SetTransform(constD2D_MATRIX_3X2_F&) method (dcomp.h)

Sets the Transform property of this visual to the specified 3-by-2 transform matrix.

Syntax

HRESULT SetTransform(
  [in, ref] const D2D_MATRIX_3X2_F & matrix
);

Parameters

[in, ref] matrix

Type: const D2D_MATRIX_3X2_F

The 3-by-2 transform matrix that is used to modify the coordinate system of this visual.

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

Setting the Transform property transforms the coordinate system of the entire visual subtree that is rooted at this visual. If the Clip property of this visual is specified, the clip rectangle is also transformed.

If the Transform property previously specified a transform object, the newly specified transform matrix replaces the transform object.

Requirements

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

See also

IDCompositionMatrixTransform

IDCompositionRotateTransform

IDCompositionScaleTransform

IDCompositionSkewTransform

IDCompositionTransform

IDCompositionTranslateTransform

IDCompositionVisual

IDCompositionVisual::SetOffsetX

IDCompositionVisual::SetOffsetY