2.2.9 Header Object

The Header object defines the EMF metafile header. It specifies properties of the device on which the image in the metafile was created.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Bounds

...

...

...

Frame

...

...

...

RecordSignature

Version

Bytes

Records

Handles

Reserved

nDescription

offDescription

nPalEntries

Device

...

Millimeters

...

Bounds (16 bytes): A RectL object ([MS-WMF] section 2.2.2.19) that specifies the rectangular inclusive-inclusive bounds in logical units of the smallest rectangle that can be drawn around the image stored in the metafile.

Frame (16 bytes): A RectL object that specifies the rectangular inclusive-inclusive dimensions, in .01 millimeter units, of a rectangle that surrounds the image stored in the metafile.

RecordSignature (4 bytes): An unsigned integer that specifies the record signature. This MUST be ENHMETA_SIGNATURE, from the FormatSignature enumeration (section 2.1.14).

Version (4 bytes): An unsigned integer that specifies the EMF version for interoperability. This MAY be 0x00010000.

Bytes (4 bytes): An unsigned integer that specifies the size of the metafile in bytes.

Records (4 bytes): An unsigned integer that specifies the number of records in the metafile.

Handles (2 bytes): An unsigned integer that specifies the number of graphics objects that are used during the processing of the metafile.

Reserved (2 bytes): An unsigned integer that MUST be 0x0000 and MUST be ignored.

nDescription (4 bytes): An unsigned integer that specifies the number of characters in the array that contains the description of the metafile's contents. This is zero if there is no description string.

offDescription (4 bytes): An unsigned integer that specifies the offset from the beginning of this record to the array that contains the description of the metafile's contents.

nPalEntries (4 bytes): An unsigned integer that specifies the number of entries in the metafile palette. The palette is located in the EMR_EOF record.

Device (8 bytes): A SizeL object ([MS-WMF] section 2.2.2.22) that specifies the size of the reference device, in pixels.

Millimeters (8 bytes): A SizeL object that specifies the size of the reference device, in millimeters.