Matrix::GetLastStatus method (gdiplusmatrix.h)

The Matrix::GetLastStatus method returns a value that indicates the nature of this Matrix object's most recent method failure.

Syntax

Status GetLastStatus();

Return value

Type: Status

The Matrix::GetLastStatus method returns an element of the Status enumeration.

If no methods invoked on this Matrix object have failed since the previous call to Matrix::GetLastStatus, then Matrix::GetLastStatus returns Ok.

If at least one method invoked on this Matrix object has failed since the previous call to Matrix::GetLastStatus, then Matrix::GetLastStatus returns a value that indicates the nature of the most recent failure.

Remarks

You can call Matrix::GetLastStatus immediately after constructing a Matrix object to determine whether the constructor succeeded.

The first time you call the Matrix::GetLastStatus method of a Matrix object, it returns Ok if the constructor succeeded and all methods invoked so far on the Matrix object succeeded. Otherwise, it returns a value that indicates the nature of the most recent failure.

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

Status

Transformations