D2D1MakeRotateMatrix function (d2d1.h)

Creates a rotation transformation that rotates by the specified angle about the specified point.

Syntax

void D2D1MakeRotateMatrix(
  [in]  FLOAT             angle,
  [in]  D2D1_POINT_2F     center,
  [out] D2D1_MATRIX_3X2_F *matrix
);

Parameters

[in] angle

Type: FLOAT

The clockwise rotation angle, in degrees.

[in] center

Type: D2D1_POINT_2F

The point about which to rotate.

[out] matrix

Type: D2D1_MATRIX_3X2_F*

When this method returns, contains the new rotation transformation. You must allocate storage for this parameter.

Return value

None

Remarks

Rotation occurs in the plane of the 2-D surface.

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1.h
Library D2d1.lib
DLL D2d1.dll