IdentityMatrix function (d2d1helper.h)

Creates an identity matrix.


D2D1_MATRIX_3X2_F IdentityMatrix();

Return value

Type: D2D1_MATRIX_3X2_F

An identity matrix.


The identity matrix is the 3x2 matrix with ones on the main diagonal and zeros elsewhere. When an identity transform is applied to an object, it does not change the position, shape, or size of the object. It is similar to the way that multiplying a number by 1 does not change the number. Any transform other than the identity transform will modify the position, shape, and/or size of objects.

Calling this function is the same as calling D2D1::Matrix3x2F::Identity().


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 d2d1helper.h
Library D2d1.lib
DLL D2d1.dll

See also