Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Image.GetLastStatus method

Applies to: desktop apps only

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

Syntax

Status GetLastStatus();

Parameters

This method has no parameters.

Return value

Type:

Type: Status

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

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

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

Remarks

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

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

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusheaders.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

Image
Bitmap
Status
Using Images, Bitmaps, and Metafiles
Images, Bitmaps, and Metafiles

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

Show:
© 2014 Microsoft