勇芳软件工作室.汉化:  GDI+ Reference > Enumerations >

Status

Previous pageReturn to chapter overviewNext page

状态枚举表示Microsoft Windows GDI +函??数调用的结果。

 

C++ 语法

 

typedef enum {

Ok = 0,

GenericError = 1,

InvalidParameter = 2,

OutOfMemory = 3,

ObjectBusy = 4,

InsufficientBuffer = 5,

NotImplemented = 6,

Win32Error = 7,

WrongState = 8,

Aborted = 9,

FileNotFound = 10,

ValueOverflow = 11,

AccessDenied = 12,

UnknownImageFormat = 13,

FontFamilyNotFound = 14,

FontStyleNotFound = 15,

NotTrueTypeFont = 16,

UnsupportedGdiplusVersion = 17,

GdiplusNotInitialized = 18,

PropertyNotFound = 19,

PropertyNotSupported = 20,

ProfileNotFound = 21

} Status;

 

PowerBASIC 语法

 

%StatusOk = 0

%StatusGenericError = 1

%StatusInvalidParameter = 2

%StatusOutOfMemory = 3

%StatusObjectBusy = 4

%StatusInsufficientBuffer = 5

%StatusNotImplemented = 6

%StatusWin32Error = 7

%StatusWrongState = 8

%StatusAborted = 9

%StatusFileNotFound = 10

%StatusValueOverflow = 11

%StatusAccessDenied = 12

%StatusUnknownImageFormat = 13

%StatusFontFamilyNotFound = 14

%StatusFontStyleNotFound = 15

%StatusNotTrueTypeFont = 16

%StatusUnsupportedGdiplusVersion = 17

%StatusGdiplusNotInitialized = 18

%StatusPropertyNotFound = 19

%StatusPropertyNotSupported = 20

%StatusProfileNotFound = 21

 

常量

 

Ok

 

表示函数调用成功。

 

GenericError

 

表示函数调用中存在错误,该错误被标识为除了此枚举的其他元素定义的异常之外的其他内容。

 

InvalidParameter

 

表示传递给函数的其中一个参数无效。

 

OutOfMemory

 

表示操作系统内存不足,无法分配内存来处理函数调用。

 

ObjectBusy

 

表示应用程序编程接口(API)调用中指定的参数之一已在另一个线程中使用。

 

InsufficientBuffer

 

指示在API调用中指定为参数的缓冲区不足以容纳要接收的数据。

 

NotImplemented

 

表示该函数未实现。

 

Win32Error

 

表示该函数生成了Microsoft Win32错误。

 

WrongState

 

表示对象处于无效状态以满足API调用。

 

Aborted

 

表示该函数已中止。

 

FileNotFound

 

表示找不到指定的图像文件或图元文件。

 

ValueOverflow

 

表示该函数执行了产生数字溢出的算术运算。

 

AccessDenied

 

表示指定文件不允许写入操作。

 

UnknownImageFormat

 

表示指定的图像文件格式未知。

 

FontFamilyNotFound

 

表示找不到指定的字体系列。字体系列名称不正确或字体系列未安装。

 

FontStyleNotFound

 

表示指定的样式不适用于指定的字体系列。

 

NotTrueTypeFont

 

表示从HDCLOGFONT检索的字体不是TrueType字体,不能与GDI +一起使用。

 

UnsupportedGdiplusVersion

 

表示系统上安装的GDI +版本与应用程序编译的版本不兼容。

 

GdiplusNotInitialized

 

表示GDI + API未处于初始化状态。要运行,所有GDI +对象都要求GDI +处于初始化状态。通过调用GdiplusStartup初始化GDI +。

 

PropertyNotFound

 

表示图像中不存在指定的属性。

 

PropertyNotSupported

 

表示指定的属性不受图像格式的支持,因此无法设置。

 

ProfileNotFound

 

表示未找到以CMYK格式保存图像所需的颜色配置文件。