Windows Metafile (WMF) is a vector graphics format native to Microsoft Windows 3.x. It stores a list of commands which, when executed, generate an image.
The term Windows Metafile usually refers specifically to WMF format, though it can also be an umbrella term that includes the successor format, Enhanced Metafile (EMF).
Most WMF files begin with a 22-byte "Aldus Placeable Metafile" header, which supplies suggested placement and scaling information. Some (mainly older) WMF files lack this header.
WMF data (usually?) begins with the byte sequence
01 00 09 00 or
02 00 09 00. This sequence may appear at the beginning of a WMF file, but it is usually at offset 22, and the file begins with the Aldus Placeable Metafile signature of
D7 CD C6 9A.
- [MS-WMF]: Windows Metafile Format - Current version
- Windows Metafile Format (wmf) Specification - Unknown version, 2007
- Microsoft Docs: Windows-Format Metafiles