IDCompositionMatrixTransform::SetMatrix method

Changes all values of the matrix of this 2D transform.

Syntax


HRESULT SetMatrix(
  const D2D_MATRIX_3X2_F &matrix
);

Parameters

matrix [ref]

Type: const D2D_MATRIX_3X2_F

The new matrix for this 2D transform.

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

This method fails if any of the matrix values are NaN, positive infinity, or negative infinity.

If any of the matrix elements were previously animated, this method removes the animations and sets the elements to the specified static value.

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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft