IDCompositionVisual::SetTransform(const D2D_MATRIX_3X2_F&) method

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

matrix [in, ref]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Dcomp.h

Library

Dcomp.lib

DLL

Dcomp.dll

See also

IDCompositionMatrixTransform
IDCompositionRotateTransform
IDCompositionScaleTransform
IDCompositionSkewTransform
IDCompositionTransform
IDCompositionTranslateTransform
IDCompositionVisual
IDCompositionVisual::SetOffsetX
IDCompositionVisual::SetOffsetY

 

 

Community Additions

ADD
Show:
© 2014 Microsoft