Matrix::SetElements method (gdiplusmatrix.h)

The Matrix::SetElements method sets the elements of this matrix.

Syntax

Status SetElements(
  [in] REAL m11,
  [in] REAL m12,
  [in] REAL m21,
  [in] REAL m22,
  [in] REAL dx,
  [in] REAL dy
);

Parameters

[in] m11

Type: REAL

Real number that specifies the element in the first row, first column.

[in] m12

Type: REAL

Real number that specifies the element in the first row, second column.

[in] m21

Type: REAL

Real number that specifies the element in the second row, first column.

[in] m22

Type: REAL

Real number that specifies the element in the second row, second column.

[in] dx

Type: REAL

Real number that specifies the element in the third row, first column.

[in] dy

Type: REAL

Real number that specifies the element in the third row, second column.

Return value

Type: Status

If the method succeeds, it returns Ok, which is an element of the Status enumeration.

If the method fails, it returns one of the other elements of the Status enumeration.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusmatrix.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Global and Local Transformations

Matrix

Matrix Representation of Transformations

Matrix::GetElements

Transformations