Compartilhar via


AFX_GLOBAL_DATA::D2D1MakeRotateMatrix

Creates a rotation transformation that rotates by a specified angle around a specified point.

HRESULT D2D1MakeRotateMatrix(
   FLOAT angle,
   D2D1_POINT_2F center,
   D2D1_MATRIX_3X2_F *matrix
);

Parameters

  • angle
    The clockwise rotation angle, in degrees.

  • center
    The point about which to rotate.

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

Return Value

Returns S_OK if successful, or an error value otherwise.

Requirements

Header: afxglobals.h

See Also

Reference

AFX_GLOBAL_DATA Structure