Image property tag type constants

You can store and retrieve image metadata with the help of a PropertyItem object. The type data member of a PropertyItem object specifies the data type of the values stored in the value data member of that same PropertyItem object.

The following constants, defined in Gdiplusimaging.h, can be assigned to the type data member of a PropertyItem object.

Constant Description
PropertyTagTypeASCII
Specifies that the value data member is a null-terminated ASCII string. If you set the type data member of a PropertyItem object to PropertyTagTypeASCII, you should set the length data member to the length of the string including the NULL terminator. For example, the string HELLO would have a length of 6.
PropertyTagTypeByte
Specifies that the value data member is an array of bytes.
PropertyTagTypeLong
Specifies that the value data member is an array of unsigned long (32-bit) integers.
PropertyTagTypeRational
Specifies that the value data member is an array of pairs of unsigned long integers. Each pair represents a fraction; the first integer is the numerator and the second integer is the denominator.
PropertyTagTypeShort
Specifies that the value data member is an array of unsigned short (16-bit) integers.
PropertyTagTypeSLONG
Specifies that the value data member is an array of signed long (32-bit) integers.
PropertyTagTypeSRational
Specifies that the value data member is an array of pairs of signed long integers. Each pair represents a fraction; the first integer is the numerator and the second integer is the denominator.
PropertyTagTypeUndefined
Specifies that the value data member is an array of bytes that can hold values of any data type.

Requirements

Requirement Value
Header
Gdiplusimaging.h

See also