Image Property Tag Type Constants

 

 

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

 

The following constants can be assigned to the type data member of a PropertyItem structure.

 

 

PixelFormat4bppIndexed 

197634

Specifies that the format is 4 bits per pixel, indexed.

 

PropertyTagTypeASCII 

2

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 

1

Specifies that the value data member is an array of bytes.

 

PropertyTagTypeLong 

4

Specifies that the value data member is an array of unsigned long (32-bit) integers.

 

PropertyTagTypeRational 

4

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 

3

Specifies that the value data member is an array of unsigned short (16-bit) integers.

 

PropertyTagTypeSLONG 

9

Specifies that the value data member is an array of signed long (32-bit) integers.

 

PropertyTagTypeSRational 

10

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 

7

Specifies that the value data member is an array of bytes that can hold values of any data type.

 

PowerBASIC Syntax

 

%PropertyTagTypeByte       = 1

%PropertyTagTypeASCII      = 2

%PropertyTagTypeShort      = 3

%PropertyTagTypeLong       = 4

%PropertyTagTypeRational   = 5

%PropertyTagTypeUndefined  = 7

%PropertyTagTypeSLONG      = 9

%PropertyTagTypeSRational  = 10

 

 

Valid HTML 4.01 Transitional