2.3 WMF Records
This section specifies the WMF Records, which can be grouped into the following general categories.
Name |
Section |
Description |
---|---|---|
Bitmap record types |
Manage and output bitmaps. |
|
Control record types |
||
Drawing record types |
Perform graphics drawing orders. |
|
Object record types |
Create and manage graphics objects. |
|
State record types |
Specify and manage the graphics configuration. |
|
Escape record types |
Specify extensions to functionality that are not directly available through other records defined in the WMF RecordType Enumeration (section 2.1.1.1). |
During the playback of a WMF metafile, a playback device context exists that can be described as a processing state in which every graphics object and property is defined. In the descriptions of WMF Records that follow in this section, an element of the playback device context can be referred to as a "currently selected" graphics object or property. If a graphics object or property that is used in the output operation specified by a record has not been explicitly selected, a default value MUST be used. See Playback Device Context (section 3.1.5) for more information.
When a WMF metafile is processed, the order in which graphics output is performed MUST be the same as the order of drawing records in the metafile. Thus, a given drawing command is always rendered on top of the renderings of preceding commands.
Implementations MUST ignore records with undocumented or unsupported record types and proceed to process the next valid record.
The following packet definition specifies the generic structure of all WMF Records except Control Record Types (section 2.3.2).
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RecordSize |
|||||||||||||||||||||||||||||||
RecordFunction |
rdParam (variable) |
||||||||||||||||||||||||||||||
... |
RecordSize (4 bytes): A 32-bit unsigned integer that defines the number of 16-bit WORD structures, defined in [MS-DTYP] section 2.2.61, in the record.
RecordFunction (2 bytes): A 16-bit unsigned integer that defines the type of this record. The low-order byte MUST match the low-order byte of one of the values in the RecordType Enumeration (section 2.1.1.1).
rdParam (variable): An optional place holder that is provided for record-specific fields.