Export (0) Print
Expand All
Expand Minimize

3.2.1 EMR_HEADER Example

This section provides an example of the EMFEMR_HEADER record ([MS-EMF] section 2.3.4.2).

00000000: 01 00 00 00 6C 00 00 00 FF FF FF FF FF FF FF FF
00000010: 64 00 00 00 6B 00 00 00 00 00 00 00 00 00 00 00
00000020: F0 07 00 00 77 08 00 00 20 45 4D 46 00 00 01 00
00000030: 5C 0A 00 00 4C 00 00 00 02 00 00 00 00 00 00 00
00000040: 00 00 00 00 00 00 00 00 40 06 00 00 B0 04 00 00
00000050: 40 01 00 00 F0 00 00 00 00 00 00 00 00 00 00 00
00000060: 00 00 00 00 00 E2 04 00 80 A9 03 00
9b1efb29-c0d1-48e4-8bbe-9c980d96574a

Figure 5: EMF EMR_HEADER Record Example, Part 1

Type: 0x00000001 identifies the record type as EMR_HEADER.

Size: 0x0000006C specifies the record size in bytes, 108.

Bounds: (0xFFFFFFFF, 0xFFFFFFFF, 0x00000064, 0x0000006B) specifies the rectangular inclusive-inclusive bounds in device units of the smallest rectangle that can be drawn around the image stored in the metafile.

Frame: (128-bits) (0x00000000, 0x00000000, 0x000007F0, 0x00000877) specifies the rectangular inclusive-inclusive dimensions, in .01 millimeter units, of a rectangle that surrounds the image stored in the metafile.

e90bc835-5ea7-4c40-8f47-aa30788c6345

Figure 6: EMF EMR_HEADER Record Example, Part 2

Signature: 0x464D4520 specifies the record signature, which consists of the ASCII string " EMF".

Version: 0x00010000 specifies EMF metafile interoperability.

Bytes: 0x00000A5C specifies the size of the metafile in bytes.

Records: 0x0000004C specifies the number of records in the metafile

Handles: 0x0002 specifies the number of indexes that will need to be defined during the processing of the metafile. These indexes correspond to graphics objects that are used in drawing commands. Index zero is reserved for references to the metafile itself.

Reserved: 0x0000 is not used.

nDescription: 0x00000000 specifies the number of characters in the array that contains the description of the metafile's contents. Zero indicates there is no description string.

offDescription: 0x00000000 specifies the offset from the beginning of this record to the array that contains the description of the metafile's contents.

nPalEntries: 0x00000000 specifies the number of entries in the metafile palette. The location of the palette is specified in the EMF end-of-file record, EMR_EOF ([MS-EMF] section 2.3.4.1).

4b06fe31-b65f-4e62-8a0a-274b69d4977b

Figure 7: EMF EMR_HEADER Record Example, Part 3

Device: (0x00000640, 0x000004B0) specifies the size of the reference device in pixels.

Millimeters: (0x00000140, 0x000000F0) specifies the size of the reference device in millimeters.

cbPixelFormat: 0x00000000 specifies the size of the EMF PixelFormatDescriptor structure ([MS-EMF] section 2.2.22). This value indicates that no pixel format is defined.

offPixelFormat: 0x00000000 specifies the offset to the PixelFormatDescriptor in the metafile. In this case, no pixel format structure is present.

bOpenGL: 0x00000000 specifies that no OpenGL commands are present in the metafile.

MicrometersX: 0x0004E200 specifies the horizontal size of the reference device in micrometers.

MicrometersY: 0x0003A900 specifies the vertical size of the reference device in micrometers.

 
Show:
© 2015 Microsoft