Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This section provides an example of an EMR_HEADER record (section 2.3.4.2).
-
00000000:01 00 00 00 D4 00 00 00 00 00 00 00 00 00 00 00 00000010:59 00 00 00 59 00 00 00 00 00 00 00 00 00 00 00 00000020:42 0C 00 00 41 0C 00 00 20 45 4D 46 00 00 01 00 00000030:FC 37 00 00 16 00 00 00 05 00 00 00 34 00 00 00 00000040:6C 00 00 00 00 00 00 00 80 07 00 00 B0 04 00 00 00000050:A5 02 00 00 A7 01 00 00 00 00 00 00 00 00 00 00 00000060:00 00 00 00 D5 55 0A 00 A5 75 06 00 53 00 61 00 00000070:6D 00 70 00 6C 00 65 00 20 00 45 00 4D 00 46 00 00000080:20 00 74 00 68 00 61 00 74 00 20 00 68 00 61 00 00000090:73 00 20 00 61 00 20 00 62 00 72 00 75 00 73 00 000000A0:68 00 20 00 66 00 69 00 6C 00 6C 00 2C 00 20 00 000000B0:62 00 69 00 74 00 6D 00 61 00 70 00 2C 00 20 00 000000C0:61 00 6E 00 64 00 20 00 74 00 65 00 78 00 74 00 000000D0:00 00 00 00
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type (0x00000001) |
|||||||||||||||||||||||||||||||
Size (0x000000D4) |
|||||||||||||||||||||||||||||||
Bounds (0x00000000) |
|||||||||||||||||||||||||||||||
... (0x00000000) |
|||||||||||||||||||||||||||||||
... (0x00000059) |
|||||||||||||||||||||||||||||||
... (0x00000059) |
|||||||||||||||||||||||||||||||
Frame (0x00000000) |
|||||||||||||||||||||||||||||||
... (0x00000000) |
|||||||||||||||||||||||||||||||
... (0x00000C42) |
|||||||||||||||||||||||||||||||
... (0x00000C31) |
Type (4 bytes): 0x00000001 identifies the record type as EMR_HEADER.
Size (4 bytes): 0x000000D4 is the record size in bytes.
Bounds (16 bytes): 0x00000000, 0x00000000, 0x00000059, 0x00000059 specify the rectangular inclusive-inclusive bounds of the smallest rectangle that can be drawn around the image stored in the metafile in logical units.
Frame (16 bytes): 0x00000000, 0x00000000, 0x00000C42, 0x00000C31 specify the rectangular inclusive-inclusive dimensions, in .01 millimeter units, of a rectangle that surrounds the image stored in the metafile.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Signature (0x464D4520) |
|||||||||||||||||||||||||||||||
Version (0x00010000) |
|||||||||||||||||||||||||||||||
Byte (0x000037FC) |
|||||||||||||||||||||||||||||||
Records (0x00000016) |
|||||||||||||||||||||||||||||||
Handles (0x0005) |
Reserved (0x0000) |
||||||||||||||||||||||||||||||
nDescription (0x00000034) |
|||||||||||||||||||||||||||||||
offDescription (0x0000006C) |
|||||||||||||||||||||||||||||||
PalEntries (0x00000000) |
Signature (4 bytes): 0x464D4520 is the record signature, which consists of the ASCII string "EMF".
Version (4 bytes): 0x00010000 specifies EMF metafile interoperability.
Bytes (4 bytes): 0x000037FC specifies the size of the metafile in bytes.
Records (4 bytes): 0x00000016 specifies the number of records in the metafile.
Handles (2 bytes): 0x0005 specifies the number of graphics objects that are created during the processing of the metafile. These objects are referenced by their indexes in metafile records. Index values for created objects start at 1. This value can be used to compute the size needed for the EMF object table (section 3.1.1.1).
Reserved (2 bytes): 0x0000 is ignored.
nDescription (4 bytes): 0x00000034 specifies the number of characters in the array that contains the description of the metafile's contents.
offDescription (4 bytes): 0x0000006C specifies the offset from the beginning of this record to the array that contains the description of the metafile's contents.
PalEntries (4 bytes): 0x00000000 specifies the number of entries in the metafile palette. The location of the palette is specified in the EMR_EOF record.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Device (0x00000780) |
|||||||||||||||||||||||||||||||
... (0x00000780) |
|||||||||||||||||||||||||||||||
Millimeters (0x000002A5) |
|||||||||||||||||||||||||||||||
... (0x000001A7) |
|||||||||||||||||||||||||||||||
cbPixelFormat (0x00000000) |
|||||||||||||||||||||||||||||||
offPixelFormat (0x00000000) |
|||||||||||||||||||||||||||||||
bOpenGL (0x00000000) |
|||||||||||||||||||||||||||||||
MicrometersX (0x000A55D5) |
|||||||||||||||||||||||||||||||
MicrometersY (0x000675A5) |
|||||||||||||||||||||||||||||||
EmfDescription ("Sample EMF that has a brush fill, bitmap, and text") |
Device (8 bytes): 0x00000780, 0x00000780 specify the size of the reference device, in pixels.
Millimeters (8 bytes): 0x000002A5, 0x000001A7 specify the size of the reference device, in millimeters.
cbPixelFormat (4 bytes): 0x00000000 specifies the size of the PixelFormatDescriptor (section 2.2.22) structure. This value indicates that no pixel format is defined.
offPixelFormat (4 bytes): 0x00000000 specifies the offset to the PixelFormatDescriptor in the metafile. In this case, no pixel format structure is present.
bOpenGL (4 bytes): 0x00000000 specifies that no OpenGL commands are present in the metafile.
Micrometers (8 bytes): 0x000A55D5, 0x000675A5 specify the horizontal and vertical size of the reference device, in micrometers.
EmfDescription (4 bytes): "Sample EMF that has a brush fill, bitmap, and text".