Windows Metafile
(→Identification) |
|||
Line 18: | Line 18: | ||
WMF data (usually?) begins with the byte sequence <code>01 00 09 00</code> or <code>02 00 09 00</code>. 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 <code>D7 CD C6 9A</code>. | WMF data (usually?) begins with the byte sequence <code>01 00 09 00</code> or <code>02 00 09 00</code>. 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 <code>D7 CD C6 9A</code>. | ||
− | EMF files have "<code> EMF</code>" (with the leading space) at file offset 40. | + | EMF files begin with bytes {{magic|01 00 00 00}} (representing record type EMR_HEADER), and have ASCII "<code> EMF</code>" (with the leading space) at file offset 40. |
== Specifications == | == Specifications == | ||
Line 33: | Line 33: | ||
* [http://inkscape.org/ Inkscape] | * [http://inkscape.org/ Inkscape] | ||
* [http://wvware.sourceforge.net/libwmf.html libwmf] | * [http://wvware.sourceforge.net/libwmf.html libwmf] | ||
+ | * [[XnView]] | ||
== Sample files == | == Sample files == |
Revision as of 15:30, 11 October 2015
Windows Metafile (WMF) is a graphics file format used mainly by old Microsoft Windows applications. It stores a list of commands which, when executed, generate an image.
Windows has drivers to support WMF, allowing applications to either write to a WMF file, or draw on the screen, using the same API.
The newer versions of the format are known as Enhanced Metafile (EMF) and Enhanced Metafile Format Plus Extensions (EMF+).
The .wmz extension indicates a ZIP-compressed WMF file. The .emz extension is reportedly used for gzip-compressed EMF files.
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.
Contents[hide] |
Identification
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
.
EMF files begin with bytes 01 00 00 00
(representing record type EMR_HEADER), and have ASCII " EMF
" (with the leading space) at file offset 40.
Specifications
- Windows Metafile Format Specification
- Windows-Format Metafiles
- Enhanced Metafile Format
- Enhanced Metafile Format Plus Extensions
Metaformat files
- Synalysis grammar file for EMF (for Hexinator / Synalize It!; more details)
Software
Sample files
- http://cd.textfiles.com/10000gp2/COLORWMF/
- http://cd.textfiles.com/cdreview/cdreview66/MULTIM/MEDI8OR/CLIPART/PICTURES/