2.2.2.27 EmfPlusMetafile Object

The EmfPlusMetafileData object specifies a metafile that contains a graphics image.


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

Type

MetafileDataSize

MetafileData (variable)

...

Type (4 bytes): An unsigned integer that specifies the type of metafile that is embedded in the MetafileData field. This value is defined in the MetafileDataType enumeration (section 2.1.1.20).

MetafileDataSize (4 bytes): An unsigned integer that specifies the size in bytes of the metafile data in the MetafileData field.

MetafileData (variable): Variable-length data that specifies the embedded metafile. The content and format of the data can be different for each metafile type.

Graphics images are specified by EmfPlusImage objects (section 2.2.1.4). An EmfPlusMetafile object MUST be present in the ImageData field of an EmfPlusImage object if ImageTypeMetafile is specified in its Type field.

This object is generic and is used for different types of data, including:

  • A WMF metafile [MS-WMF];

  • A WMF metafile which can be placed;

  • An EMF metafile [MS-EMF];

  • An EMF+ metafile that specifies graphics operations with EMF+ records only; and

  • An EMF+ metafile that specifies graphics operations with both EMF+ and EMF records ([MS-EMF] section 2.3).

See section 2.2.2 for the specification of additional structure objects.