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

PropertyItem

Previous pageReturn to chapter overviewNext page

PropertyItem结构保存一张图片元数据。

 

C++ 语法

 

typedef struct PropertyItem {

PROPID id;

ULONG length;

WORD type;

void * value;

};

 

PowerBASIC 语法

 

TYPE PropertyItem

id AS DWORD

length AS DWORD

wtype AS WORD

value AS DWORD

END TYPE

 

成员

 

id

 

确定存储在此PropertyItem对象中的元数据类型的整数。在Gdiplusimaging.inc中定义了识别各种元数据的常量(PropertyTagEquipMakePropertyTagEquipModel等)。PROPID数据类型在Wtypes.inc中定义。

 

length

 

值数组的大小(以字节为单位)。

 

wtype

 

标识值数组中值的数据类型的整数。识别各种数据类型的常量(PropertyTagTypeBytePropertyTagTypeASCII等)在Gdiplusimaging.inc中定义。

 

value

 

指向数组数组的指针。数组中的每个值都具有由类型数据成员指定的数据类型。